]> granicus.if.org Git - nethack/commitdiff
compiler warning
authornhmall <nhmall@nethack.org>
Mon, 25 Apr 2022 13:45:10 +0000 (09:45 -0400)
committernhmall <nhmall@nethack.org>
Mon, 25 Apr 2022 13:45:10 +0000 (09:45 -0400)
src/do_wear.c(2884): warning C4389: '!=': signed/unsigned mismatch

src/do_wear.c

index 9a0bb13fc9500a6e7f84dde89016c0a7940ee989..dd0bccc7eb823e4f290c28ff17e7918f3bb0907a 100644 (file)
@@ -2860,7 +2860,7 @@ int
 remarm_swapwep(void)
 {
     struct _cmd_queue cq, *cmdq;
-    boolean oldbknown;
+    unsigned oldbknown;
 
     if ((cmdq = cmdq_pop()) != 0) {
         /* '-' uswapwep item-action picked from context-sensitive invent */