Fix compiler warnings

This commit is contained in:
LJ Sonic 2024-03-16 17:21:35 +01:00
parent a6b71826f9
commit de8a4bb3e1
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@ static inline int lib_freeslot(lua_State *L)
spritenum_t j;
if (strlen(word) > MAXSPRITENAME)
return luaL_error(L, "Sprite name is longer than %d characters\n", strlen(word));
return luaL_error(L, "Sprite name is longer than %s characters\n", sizeu1(strlen(word)));
for (j = SPR_FIRSTFREESLOT; j <= SPR_LASTFREESLOT; j++)
{

View file

@ -441,7 +441,7 @@ void readfreeslots(MYFILE *f)
else if (fastcmp(type, "SPR"))
{
if (strlen(word) > MAXSPRITENAME)
I_Error("Sprite name is longer than %d characters\n", strlen(word));
I_Error("Sprite name is longer than %s characters\n", sizeu1(strlen(word)));
for (i = SPR_FIRSTFREESLOT; i <= SPR_LASTFREESLOT; i++)
{