[NFC] api: Fix sign-compare warnings (#1692)

Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
Sven van Haastregt
2023-04-03 16:29:51 +01:00
committed by GitHub
parent a70fa56003
commit 605228ae7f
6 changed files with 18 additions and 18 deletions

View File

@@ -71,11 +71,11 @@ int test_min_image_formats(cl_device_id device, cl_context context,
int supports_3D_image_writes =
is_extension_available(device, "cl_khr_3d_image_writes");
for (int t = 0; t < ARRAY_SIZE(image_types); t++)
for (size_t t = 0; t < ARRAY_SIZE(image_types); t++)
{
const cl_mem_object_type type = image_types[t];
log_info(" testing %s...\n", convert_image_type_to_string(type));
for (int f = 0; f < ARRAY_SIZE(mem_flags); f++)
for (size_t f = 0; f < ARRAY_SIZE(mem_flags); f++)
{
const cl_mem_flags flags = mem_flags[f];
const char* testTypeString = flags == CL_MEM_READ_ONLY