]> granicus.if.org Git - nethack/commitdiff
use %lu for unsigned long
authorSHIRAKATA Kentaro <argrath@ub32.org>
Fri, 22 Oct 2021 16:07:40 +0000 (01:07 +0900)
committerSHIRAKATA Kentaro <argrath@ub32.org>
Fri, 22 Oct 2021 16:07:40 +0000 (01:07 +0900)
`curr->tid` is unsigned long, so use `%lu`.

src/timeout.c

index 630b1b4346cb3cd73c0fe51cb0f5f990f5921269..fec6a0c33ce2ad04e190d08e76f5325f258a1918 100644 (file)
@@ -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);
             }
         }