mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-21 06:49:02 +00:00
[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:
committed by
paulfradgley
parent
9de56b0a37
commit
743cdeb246
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user