mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
fix the type used for bitfield_extract_signed (#1913)
We compute the reference values using unsigned types exclusively, even when the input type is signed. This fixes one place where an signed type was inadvertently used.
This commit is contained in:
@@ -44,7 +44,7 @@ template <typename T>
|
||||
static typename std::make_unsigned<T>::type
|
||||
cpu_bit_extract_signed(T tbase, cl_uint offset, cl_uint count)
|
||||
{
|
||||
typedef typename std::make_signed<T>::type unsigned_t;
|
||||
typedef typename std::make_unsigned<T>::type unsigned_t;
|
||||
|
||||
assert(offset <= sizeof(T) * 8);
|
||||
assert(count <= sizeof(T) * 8);
|
||||
|
||||
Reference in New Issue
Block a user