diff --git a/src/opencl_handle.cc b/src/opencl_handle.cc index d4baaca..5da0a84 100644 --- a/src/opencl_handle.cc +++ b/src/opencl_handle.cc @@ -717,7 +717,7 @@ OpenCLContext::OpenCLContext() : context_(nullptr), queue_(nullptr) { } bool success = false; - for (auto i = 0; i < num_platforms; ++i) { + for (cl_uint i = 0; i < num_platforms; ++i) { cl_context_properties context_properties[] = { CL_CONTEXT_PLATFORM, reinterpret_cast(platform_ids[i]), 0};