From bfd79f5c9d73625ad03f969d4be906458b8570df Mon Sep 17 00:00:00 2001 From: SHIRAKATA Kentaro Date: Sat, 23 Oct 2021 01:07:40 +0900 Subject: [PATCH 1/2] use %lu for unsigned long `curr->tid` is unsigned long, so use `%lu`. --- src/timeout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/timeout.c b/src/timeout.c index 630b1b434..fec6a0c33 100644 --- a/src/timeout.c +++ b/src/timeout.c @@ -1874,10 +1874,10 @@ timer_sanity_check(void) y = (xchar) (where & 0xFFFF); if (!isok(x, y)) { - impossible("timer sanity: spot timer %d at <%d,%d>", + impossible("timer sanity: spot timer %lu at <%d,%d>", curr->tid, x, y); } else if (curr->func_index == MELT_ICE_AWAY && !is_ice(x, y)) { - impossible("timer sanity: melt timer %d on non-ice %d <%d,%d>", + impossible("timer sanity: melt timer %lu on non-ice %d <%d,%d>", curr->tid, levl[x][y].typ, x, y); } } From df0ed882a86f853995aeb3d0207591f876a42c4e Mon Sep 17 00:00:00 2001 From: nhmall Date: Fri, 22 Oct 2021 15:23:07 -0400 Subject: [PATCH 2/2] use %lu in format string in timer_sanity_check() closes #617 --- doc/fixes37.0 | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/fixes37.0 b/doc/fixes37.0 index 0e40ac4ac..0096e62df 100644 --- a/doc/fixes37.0 +++ b/doc/fixes37.0 @@ -1315,6 +1315,7 @@ MAX_RADIUS defines the outer bound of the radius table, so leave it at 15 variable attknum was declared without initialization, and was used in find_roll_to_hit() (pr #615 by argrath) check for NULL lua_State before calling lua_close() (pr #616 by argrath) +use %lu, not %d, in format string in timer_sanity_check() (pr #617 by argrath) Code Cleanup and Reorganization