Fix -Wsign-compare warnings

This commit is contained in:
Léo Lam
2020-11-21 01:05:01 +01:00
parent 4b7f784d1b
commit 82f1e6204d
4 changed files with 8 additions and 5 deletions

View File

@ -99,7 +99,7 @@ u32 HashEctor(const u8* ptr, size_t length)
{
u32 crc = 0;
for (int i = 0; i < length; i++)
for (size_t i = 0; i < length; i++)
{
crc ^= ptr[i];
crc = (crc << 3) | (crc >> 29);