]> granicus.if.org Git - nethack/commitdiff
use %d for short
authorSHIRAKATA Kentaro <argrath@ub32.org>
Tue, 23 Nov 2021 21:30:00 +0000 (06:30 +0900)
committerSHIRAKATA Kentaro <argrath@ub32.org>
Tue, 23 Nov 2021 21:30:00 +0000 (06:30 +0900)
obj->otyp is short, so corresponding format string is %d.

(from Coverity Scan)

src/mkobj.c

index 438be943636ced8bd5882b20bdc4e510cd6fb395..1665bca24cfd35b2103191cd4f88d01c67e13d7d 100644 (file)
@@ -1346,7 +1346,7 @@ shrink_glob(
     unsigned old_top_owt = 0;
 
     if (!obj->globby) {
-        impossible("shrink_glob for non-glob [%s: %s]?",
+        impossible("shrink_glob for non-glob [%d: %s]?",
                    obj->otyp, simpleonames(obj));
         return; /* old timer is gone, don't start a new one */
     }