mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +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
@@ -283,7 +283,7 @@ std::string exe_path()
|
||||
exit(2);
|
||||
}; // if
|
||||
|
||||
if (len < path.size())
|
||||
if (static_cast<size_t>(len) < path.size())
|
||||
{
|
||||
// We got the path.
|
||||
path.resize(len);
|
||||
|
||||
Reference in New Issue
Block a user