Minor fix: un/signed int comparison warning

This commit is contained in:
Stephen Seo 2024-03-07 16:28:17 +09:00
parent d551c9da3b
commit f17539ac14

View file

@ -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<cl_context_properties>(platform_ids[i]), 0};