[fix] cl_bool variable is passed as input for blocking operations in clEnqueueReadBuffer
@@ -111,7 +111,7 @@ WRITE_ARRAY(Java_uk_ac_manchester_tornado_drivers_opencl_OCLCommandQueue, D, dou
printf("uk.ac.manchester.tornado.drivers.opencl> read array 0x%lx (%d bytes) to %p\n",offset, num_bytes, buffer);\
}\
cl_event event; \
- cl_int status = clEnqueueReadBuffer((cl_command_queue) queue_id, (cl_mem) device_ptr, blocking, (size_t) offset, (size_t) num_bytes, &buffer[hostOffset], (cl_uint) num_events, (cl_event*) events, &event);\
+ cl_int status = clEnqueueReadBuffer((cl_command_queue) queue_id, (cl_mem) device_ptr, blocking, (size_t) offset, (size_t) num_bytes, (void *) &buffer[hostOffset], (cl_uint) num_events, (cl_event*) events, &event);\
if (status != CL_SUCCESS) {\
printf("[ERROR] clEnqueueReadBuffer, code = %d\n", status);\
if (status == CL_MEM_OBJECT_ALLOCATION_FAILURE) {\
