Fix -Wsign-compare warnings

This commit is contained in:
Léo Lam 2020-11-21 01:05:01 +01:00
commit 82f1e6204d
No known key found for this signature in database
GPG key ID: 0DF30F9081000741
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);