From de8a4bb3e147d99640ad3ba2afd40d90cc96233d Mon Sep 17 00:00:00 2001 From: LJ Sonic Date: Sat, 16 Mar 2024 17:21:35 +0100 Subject: [PATCH] Fix compiler warnings --- src/deh_lua.c | 2 +- src/deh_soc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/deh_lua.c b/src/deh_lua.c index 3d6d8b455..0d5f48ce1 100644 --- a/src/deh_lua.c +++ b/src/deh_lua.c @@ -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++) { diff --git a/src/deh_soc.c b/src/deh_soc.c index 269598459..6e4c087d5 100644 --- a/src/deh_soc.c +++ b/src/deh_soc.c @@ -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++) {