From: Stephen Seo Date: Thu, 7 Mar 2024 07:28:17 +0000 (+0900) Subject: Minor fix: un/signed int comparison warning X-Git-Url: https://git.seodisparate.com/stephenseo/static/annotated.html?a=commitdiff_plain;h=f17539ac142bf61890666e3d5f11bd37d2e83ced;p=EN605.617.81.FA21_StephenSeo_DitheringProject Minor fix: un/signed int comparison warning --- 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};