blind attempt to satisfy MS-DOS compile

This commit is contained in:
nhkeni
2024-01-05 18:23:55 -05:00
parent 0745d3fbe5
commit 2c26176de8
+6 -6
View File
@@ -1,4 +1,4 @@
/* NetHack 3.7 nhlua.c $NHDT-Date: 1704493569 2024/01/05 22:26:09 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.125 $ */ /* NetHack 3.7 nhlua.c $NHDT-Date: 1704497031 2024/01/05 23:23:51 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.126 $ */
/* Copyright (c) 2018 by Pasi Kallinen */ /* Copyright (c) 2018 by Pasi Kallinen */
/* NetHack may be freely redistributed. See license for details. */ /* NetHack may be freely redistributed. See license for details. */
@@ -106,7 +106,7 @@ typedef struct nhl_user_data {
/* stats */ /* stats */
uint32_t statctr; /* stats step reload count */ uint32_t statctr; /* stats step reload count */
uint32_t sid; /* id number (per state) */ int sid; /* id number (per state) */
const char *name; /* for stats logging (per pcall) */ const char *name; /* for stats logging (per pcall) */
#ifdef NHL_SANDBOX #ifdef NHL_SANDBOX
@@ -1910,8 +1910,8 @@ nhl_pcall(lua_State *L, int nargs, int nresults, const char *name)
} }
if(nud && nud->memlimit && gl.loglua){ if(nud && nud->memlimit && gl.loglua){
lua_gc(L, LUA_GCCOLLECT); lua_gc(L, LUA_GCCOLLECT);
livelog_printf(LL_DEBUG, "LUASTATS PMEM %d:%s %u", livelog_printf(LL_DEBUG, "LUASTATS PMEM %d:%s %lu",
nud->sid,nud->name,nud->inuse); nud->sid,nud->name,(long unsigned)nud->inuse);
} }
#endif #endif
return rv; return rv;
@@ -2133,8 +2133,8 @@ nhl_done(lua_State *L)
} }
if(nud && nud->memlimit && !nud->perpcall){ if(nud && nud->memlimit && !nud->perpcall){
lua_gc(L, LUA_GCCOLLECT); lua_gc(L, LUA_GCCOLLECT);
livelog_printf(LL_DEBUG, "LUASTATS DMEM %d:%s %u", livelog_printf(LL_DEBUG, "LUASTATS DMEM %d:%s %lu",
nud->sid, nud->name,nud->inuse); nud->sid, nud->name,(long unsigned)nud->inuse);
} }
} }
if(nud) if(nud)