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

@@ -136,7 +136,7 @@ struct CommandBufferGetCommandBufferInfo : public BasicCommandBufferTest
// We can not check if this is the right queue because this is an opaque
// object, test against NULL.
for (int i = 0; i < queue_list.size(); i++)
for (size_t i = 0; i < queue_list.size(); i++)
{
test_assert_error(
queue_list[i] == queue,

View File

@@ -160,7 +160,7 @@ struct CommandBufferProfiling : public BasicCommandBufferTest
// verify the results by comparing timestamps
bool all_vals_0 = prof_params.front().value != 0;
for (int i = 1; i < prof_params.size(); i++)
for (size_t i = 1; i < prof_params.size(); i++)
{
all_vals_0 = (prof_params[i].value != 0) ? false : all_vals_0;
if (prof_params[i - 1].value > prof_params[i].value)