[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:
Sven van Haastregt
2023-03-12 11:06:55 +00:00
committed by GitHub
parent 5297ecd673
commit 9798a96a9f
5 changed files with 8 additions and 10 deletions

View File

@@ -390,7 +390,7 @@ int test_device_partition_type_support(cl_device_id parentDevice, const cl_devic
} else {
test_error_ret( err, "Unable to get device partition properties (1)", -1 );
};
for ( int i = 0; i < supportedProps.size(); i++)
for (size_t i = 0; i < supportedProps.size(); i++)
{
if (supportedProps[i] == partitionType)
{