mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-21 06:49:02 +00:00
[NFC] Fix some sign-compare warnings (#1670)
In `os_helpers.cpp`, the preceding `if` already handles negative values, so cast to unsigned. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
committed by
paulfradgley
parent
9de56b0a37
commit
743cdeb246
@@ -1362,8 +1362,7 @@ int test_computeinfo(cl_device_id deviceID, cl_context context,
|
||||
else
|
||||
{
|
||||
// print device info
|
||||
int onInfo;
|
||||
for (onInfo = 0;
|
||||
for (size_t onInfo = 0;
|
||||
onInfo < sizeof(device_infos) / sizeof(device_infos[0]); onInfo++)
|
||||
{
|
||||
log_info("Getting device IDs for %s devices\n",
|
||||
@@ -1390,9 +1389,8 @@ int test_computeinfo(cl_device_id deviceID, cl_context context,
|
||||
test_error(err, "clGetDeviceIDs failed");
|
||||
}
|
||||
|
||||
int onDevice;
|
||||
for (onDevice = 0; onDevice < device_infos[onInfo].num_devices;
|
||||
onDevice++)
|
||||
for (size_t onDevice = 0;
|
||||
onDevice < device_infos[onInfo].num_devices; onDevice++)
|
||||
{
|
||||
log_info("%s Device %d of %d Info:\n",
|
||||
device_infos[onInfo].device_type_name, onDevice + 1,
|
||||
|
||||
Reference in New Issue
Block a user