[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 paulfradgley
parent 9de56b0a37
commit 743cdeb246
5 changed files with 8 additions and 10 deletions

View File

@@ -41,7 +41,7 @@ TEST_SPIRV_FUNC(get_program_il)
std::vector<unsigned char> spirv_binary = readSPIRV(spvName);
int file_bytes = spirv_binary.size();
size_t file_bytes = spirv_binary.size();
if (file_bytes == 0)
{
test_fail("ERROR: SPIRV file %s not found!\n", spvName);
@@ -102,4 +102,4 @@ TEST_SPIRV_FUNC(get_program_il)
}
return 0;
}
}