]> granicus.if.org Git - nethack/commitdiff
Change flag::sortloot to xchar
authorC.W. Betts <computers57@hotmail.com>
Thu, 14 Apr 2016 20:04:22 +0000 (14:04 -0600)
committerC.W. Betts <computers57@hotmail.com>
Thu, 14 Apr 2016 20:04:22 +0000 (14:04 -0600)
When typedefed to C99's bool type, Clang complains in container_contents about "comparison of constant 108 with expression of type 'boolean' (aka 'bool') is always false".

include/flag.h

index 26009e26a161c845b84e5b60708744ed25935d16..b9cd17f6bcbd4078f35b5cb8f82070a7e1d083b7 100644 (file)
@@ -48,7 +48,7 @@ struct flag {
     boolean showexp;         /* show experience points */
     boolean showscore;       /* show score */
     boolean silent;          /* whether the bell rings or not */
-    boolean sortloot;        /* sort items alphabetically when looting */
+    xchar sortloot;          /* sort items alphabetically when looting */
     boolean sortpack;        /* sorted inventory */
     boolean sparkle;         /* show "resisting" special FX (Scott Bigham) */
     boolean standout;        /* use standout for --More-- */