From 2c26176de82f723a7c981cf9cc8d005a527bd5f6 Mon Sep 17 00:00:00 2001 From: nhkeni Date: Fri, 5 Jan 2024 18:23:55 -0500 Subject: [PATCH] blind attempt to satisfy MS-DOS compile --- src/nhlua.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/nhlua.c b/src/nhlua.c index 3c6aea64a..c0c6ac554 100644 --- a/src/nhlua.c +++ b/src/nhlua.c @@ -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 */ /* NetHack may be freely redistributed. See license for details. */ @@ -106,7 +106,7 @@ typedef struct nhl_user_data { /* stats */ 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) */ #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){ lua_gc(L, LUA_GCCOLLECT); - livelog_printf(LL_DEBUG, "LUASTATS PMEM %d:%s %u", - nud->sid,nud->name,nud->inuse); + livelog_printf(LL_DEBUG, "LUASTATS PMEM %d:%s %lu", + nud->sid,nud->name,(long unsigned)nud->inuse); } #endif return rv; @@ -2133,8 +2133,8 @@ nhl_done(lua_State *L) } if(nud && nud->memlimit && !nud->perpcall){ lua_gc(L, LUA_GCCOLLECT); - livelog_printf(LL_DEBUG, "LUASTATS DMEM %d:%s %u", - nud->sid, nud->name,nud->inuse); + livelog_printf(LL_DEBUG, "LUASTATS DMEM %d:%s %lu", + nud->sid, nud->name,(long unsigned)nud->inuse); } } if(nud)