- fixed a few more leftover Clang warnings.

This commit is contained in:
Christoph Oelckers 2023-03-26 09:27:46 +02:00
parent ee5b6e45f8
commit c1cb7783a6
2 changed files with 3 additions and 3 deletions

View file

@ -721,7 +721,7 @@ FAveragizer::FAveragizer()
void FAveragizer::AddAlloc(size_t alloc)
{
NewestPos = (NewestPos + 1) & (HistorySize - 1);
if (TotalCount < HistorySize)
if (TotalCount < (int)HistorySize)
{
TotalCount++;
}

View file

@ -2295,7 +2295,7 @@ DEFINE_ACTION_FUNCTION(FLevelLocals, GetChecksum)
for (int j = 0; j < 16; ++j)
{
sprintf(md5string + j * 2, "%02x", self->md5[j]);
snprintf(md5string + j * 2, 3, "%02x", self->md5[j]);
}
ACTION_RETURN_STRING((const char*)md5string);
@ -2692,7 +2692,7 @@ DEFINE_ACTION_FUNCTION(_LevelInfo, MapChecksum)
map->GetChecksum(cksum);
for (int j = 0; j < 16; ++j)
{
sprintf(md5string + j * 2, "%02x", cksum[j]);
snprintf(md5string + j * 2, 3, "%02x", cksum[j]);
}
delete map;
}