summaryrefslogtreecommitdiff
path: root/opencl/inc/opencl_device_selection.h
diff options
context:
space:
mode:
Diffstat (limited to 'opencl/inc/opencl_device_selection.h')
-rw-r--r--opencl/inc/opencl_device_selection.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/opencl/inc/opencl_device_selection.h b/opencl/inc/opencl_device_selection.h
index 5ebc87a9410c..8849cd59abbc 100644
--- a/opencl/inc/opencl_device_selection.h
+++ b/opencl/inc/opencl_device_selection.h
@@ -158,7 +158,7 @@ inline ds_status initDSProfile(std::unique_ptr<ds_profile>& rProfile, OString co
}
numDevices = 0;
- for (i = 0; i < (unsigned int)numPlatforms; i++)
+ for (i = 0; i < static_cast<unsigned int>(numPlatforms); i++)
{
cl_uint num = 0;
cl_int err = clGetDeviceIDs(platforms[i], CL_DEVICE_TYPE_ALL, 0, nullptr, &num);
@@ -182,7 +182,7 @@ inline ds_status initDSProfile(std::unique_ptr<ds_profile>& rProfile, OString co
rProfile->devices.resize(numDevices + 1); // +1 to numDevices to include the native CPU
next = 0;
- for (i = 0; i < (unsigned int)numPlatforms; i++)
+ for (i = 0; i < static_cast<unsigned int>(numPlatforms); i++)
{
cl_uint num = 0;
unsigned j;