- fixed warnings in Exhumed.

This commit is contained in:
Christoph Oelckers 2021-10-08 19:22:21 +02:00
parent 948f194064
commit 10b0bba53e
5 changed files with 5 additions and 5 deletions

View file

@ -418,7 +418,7 @@ static const char * const cinpalfname[] = {
void uploadCinemaPalettes()
{
for (int i = 0; i < countof(cinpalfname); i++)
for (unsigned i = 0; i < countof(cinpalfname); i++)
{
uint8_t palette[768] = {};
auto hFile = fileSystem.OpenFileReader(cinpalfname[i]);

View file

@ -193,7 +193,7 @@ public:
LMFPlayer* pId = (LMFPlayer*)userdata;
memcpy(buff, &pId->audio.samples[pId->audio.nRead], len);
pId->audio.nRead += len / 2;
if (pId->audio.nRead >= countof(pId->audio.samples)) pId->audio.nRead = 0;
if (pId->audio.nRead >= (int)countof(pId->audio.samples)) pId->audio.nRead = 0;
return true;
}

View file

@ -144,7 +144,7 @@ void CheckMummyRevive(short nMummy)
for (unsigned i = 0; i < MummyList.Size(); i++)
{
if (i != nMummy)
if ((int)i != nMummy)
{
short nSprite2 = MummyList[i].nSprite;
if (sprite[nSprite2].statnum != 102) {

View file

@ -183,7 +183,7 @@ void CopyHeadToWorkTile(short nTile)
const uint8_t* pSrc = tilePtr(nTile);
uint8_t *pDest = &Worktile[212 * 49 + 53];
for (int i = 0; i < kSpiritY; i++)
for (unsigned i = 0; i < kSpiritY; i++)
{
memcpy(pDest, pSrc, kSpiritX);

View file

@ -167,7 +167,7 @@ int seq_ReadSequence(const char *seqName)
return 0;
}
short tag;
unsigned short tag;
hFile.Read(&tag, sizeof(tag));
if (tag < MAKE_ID('I', 'H', 0, 0) || (tag > MAKE_ID('I', 'H', 0, 0) && tag != MAKE_ID('D', 'S', 0, 0)))
{