- fixed warnings in Blood.

This commit is contained in:
Christoph Oelckers 2021-10-08 19:09:26 +02:00
parent 39319a9582
commit 8606b2ea5a
3 changed files with 4 additions and 4 deletions

View file

@ -465,7 +465,7 @@ uint8_t RFS::GetNextTag()
break;
}
if (eax == 0 && strlen(tags[i]._value) == ebp)
if (eax == 0 && (int)strlen(tags[i]._value) == ebp)
{
scriptBuffer[ebp] = 0;
return tags[i]._index;

View file

@ -394,7 +394,7 @@ static AISTATE* allAIStates[] =
FSerializer& Serialize(FSerializer& arc, const char* keyname, AISTATE*& w, AISTATE** def)
{
int i = 0;
unsigned i = 0;
if (arc.isWriting())
{
if (def && w == *def) return arc;
@ -411,7 +411,7 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, AISTATE*& w, AISTA
else
{
arc(keyname, i);
if (i >= 0 && i < countof(allAIStates))
if (i < countof(allAIStates))
{
w = allAIStates[i];
}

View file

@ -3287,7 +3287,7 @@ void condError(XSPRITE* pXCond, const char* pzFormat, ...) {
break;
}
snprintf(buffer, 512, "\n\n%s CONDITION RX: %d, TX: %d, SPRITE: #%d RETURNS:\n", condType.GetChars(), pXCond->rxID, pXCond->txID, pXCond->reference);
snprintf(buffer, 256, "\n\n%s CONDITION RX: %d, TX: %d, SPRITE: #%d RETURNS:\n", condType.GetChars(), pXCond->rxID, pXCond->txID, pXCond->reference);
va_list args;
va_start(args, pzFormat);
vsnprintf(buffer2, 512, pzFormat, args);