Fix more -Wsign-compare warnings (#1779)

Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
Sven van Haastregt
2023-09-14 11:00:30 +01:00
committed by GitHub
parent 39cca992b8
commit d7f24a7986
9 changed files with 32 additions and 30 deletions

View File

@@ -123,7 +123,7 @@ int test_intmath(cl_device_id device, cl_context context,
size_t datasize = sizeof(T) * num_elements * N;
// Create device buffers.
for (int i = 0; i < ARRAY_SIZE(streams); i++)
for (size_t i = 0; i < ARRAY_SIZE(streams); i++)
{
streams[i] =
clCreateBuffer(context, CL_MEM_READ_WRITE, datasize, NULL, &err);
@@ -175,7 +175,7 @@ int test_intmath(cl_device_id device, cl_context context,
test_error(err, "clEnqueueReadBuffer failed\n");
// Verify results
for (int i = 0; i < num_elements * N; i++)
for (unsigned i = 0; i < num_elements * N; i++)
{
T r = test.ref(inputA[i], inputB[i], inputC[i]);
if (r != output[i])