mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-14 16:41:13 +00:00
- fixed a few warnings.
This commit is contained in:
parent
2628dabc31
commit
c8c8fecad3
2 changed files with 6 additions and 6 deletions
|
@ -376,8 +376,8 @@ void FResourceFile::GenerateHash()
|
|||
for(uint32_t i = 0; i < NumLumps; i++)
|
||||
{
|
||||
auto lump = GetLump(i);
|
||||
md5.Update((const uint8_t*)lump->Name, strlen(lump->Name) + 1); // +1 to hash the terminating 0 as well.
|
||||
md5.Update((const uint8_t*)lump->FullName.GetChars(), lump->FullName.Len() + 1);
|
||||
md5.Update((const uint8_t*)lump->Name, (unsigned)strlen(lump->Name) + 1); // +1 to hash the terminating 0 as well.
|
||||
md5.Update((const uint8_t*)lump->FullName.GetChars(), (unsigned)lump->FullName.Len() + 1);
|
||||
md5.Update((const uint8_t*)&lump->LumpSize, 4);
|
||||
}
|
||||
md5.Final(digest);
|
||||
|
|
|
@ -1340,9 +1340,9 @@ DEFINE_ACTION_FUNCTION_NATIVE(_Sector, SetXOffset, SetXOffset)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static F3DFloor* Get3DFloor(sector_t *self, int index)
|
||||
static F3DFloor* Get3DFloor(sector_t *self, unsigned int index)
|
||||
{
|
||||
if ((index < 0) || (index >= self->e->XFloor.ffloors.Size()))
|
||||
if (index >= self->e->XFloor.ffloors.Size())
|
||||
return nullptr;
|
||||
return self->e->XFloor.ffloors[index];
|
||||
}
|
||||
|
@ -1365,9 +1365,9 @@ DEFINE_ACTION_FUNCTION_NATIVE(_Sector, SetXOffset, SetXOffset)
|
|||
ACTION_RETURN_INT(self->e->XFloor.ffloors.Size());
|
||||
}
|
||||
|
||||
static sector_t* GetAttached(sector_t *self, int index)
|
||||
static sector_t* GetAttached(sector_t *self, unsigned int index)
|
||||
{
|
||||
if ((index < 0) || (index >= self->e->XFloor.attached.Size()))
|
||||
if (index >= self->e->XFloor.attached.Size())
|
||||
return nullptr;
|
||||
return self->e->XFloor.attached[index];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue