Skip to content

Commit

Permalink
Fix warning breaking Unvanquished CI
Browse files Browse the repository at this point in the history
  • Loading branch information
slipher committed Oct 31, 2024
1 parent b8873df commit 6264d5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/System.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ void GenRandomBytes(void* dest, size_t size)
Sys::Error("getrandom syscall failed: %s", strerror(errno));
}
}
else if (ret != size)
else if (static_cast<size_t>(ret) != size)
{
Sys::Error("getrandom syscall returned insufficient data");
}
Expand Down

0 comments on commit 6264d5b

Please sign in to comment.