mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-22 23:29:02 +00:00
Fix more -Wsign-compare warnings (#1779)
Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
committed by
GitHub
parent
39cca992b8
commit
d7f24a7986
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user