From f17539ac142bf61890666e3d5f11bd37d2e83ced Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Thu, 7 Mar 2024 16:28:17 +0900 Subject: [PATCH] Minor fix: un/signed int comparison warning --- src/opencl_handle.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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};