Skip to content

Commit

Permalink
- fixed a few more leftover Clang warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Mar 26, 2023
1 parent ee5b6e4 commit c1cb778
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/common/objects/dobjgc.cpp
Expand Up @@ -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++;
}
Expand Down
4 changes: 2 additions & 2 deletions src/scripting/vmthunks.cpp
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit c1cb778

Please sign in to comment.