mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-17 18:21:10 +00:00
Quick fixes for unsigned-signed compiler warnings
probably not the most ideal way of doing this to be fair though
This commit is contained in:
parent
4e2cc2c200
commit
732003bcb9
1 changed files with 3 additions and 3 deletions
|
@ -674,11 +674,11 @@ static void readfreeslots(MYFILE *f)
|
||||||
else if (fastcmp(type, "SPR2"))
|
else if (fastcmp(type, "SPR2"))
|
||||||
{
|
{
|
||||||
// Search if we already have an SPR2 by that name...
|
// Search if we already have an SPR2 by that name...
|
||||||
for (i = SPR2_FIRSTFREESLOT; i < free_spr2; i++)
|
for (i = SPR2_FIRSTFREESLOT; i < (int)free_spr2; i++)
|
||||||
if (memcmp(spr2names[i],word,4) == 0)
|
if (memcmp(spr2names[i],word,4) == 0)
|
||||||
break;
|
break;
|
||||||
// We found it? (Two mods using the same SPR2 name?) Then don't allocate another one.
|
// We found it? (Two mods using the same SPR2 name?) Then don't allocate another one.
|
||||||
if (i < free_spr2)
|
if (i < (int)free_spr2)
|
||||||
continue;
|
continue;
|
||||||
// Copy in the spr2 name and increment free_spr2.
|
// Copy in the spr2 name and increment free_spr2.
|
||||||
if (free_spr2 < NUMPLAYERSPRITES) {
|
if (free_spr2 < NUMPLAYERSPRITES) {
|
||||||
|
@ -8551,7 +8551,7 @@ static inline int lib_getenum(lua_State *L)
|
||||||
}
|
}
|
||||||
else if (fastncmp("SPR2_",word,4)) {
|
else if (fastncmp("SPR2_",word,4)) {
|
||||||
p = word+5;
|
p = word+5;
|
||||||
for (i = 0; i < free_spr2; i++)
|
for (i = 0; i < (fixed_t)free_spr2; i++)
|
||||||
if (!spr2names[i][4])
|
if (!spr2names[i][4])
|
||||||
{
|
{
|
||||||
// special 3-char cases, e.g. SPR2_RUN
|
// special 3-char cases, e.g. SPR2_RUN
|
||||||
|
|
Loading…
Reference in a new issue