mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Fix bug caught by -Wparentheses (#915)
This fix is required to build with -Wall -Werror with GCC >= 5. Signed-off-by: Einar Hov <einar.hov@arm.com>
This commit is contained in:
@@ -595,7 +595,8 @@ static int test_buffer_map_read( cl_device_id deviceID, cl_context context, cl_c
|
||||
else
|
||||
buffers[i] = clCreateBuffer(context, flag_set[src_flag_id], ptrSizes[i] * num_elements, NULL, &err);
|
||||
|
||||
if ( ! buffers[i] | err){
|
||||
if (!buffers[i] || err)
|
||||
{
|
||||
print_error(err, "clCreateBuffer failed\n" );
|
||||
align_free( outptr[i] );
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user