mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +00:00
- fixed a few more leftover Clang warnings.
This commit is contained in:
parent
ee5b6e45f8
commit
c1cb7783a6
2 changed files with 3 additions and 3 deletions
|
@ -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++;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue