[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

@@ -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);