From 41ade6d37daa0d16d0a1dcad1525ae1d185019ba Mon Sep 17 00:00:00 2001 From: "C.W. Betts" Date: Thu, 14 Apr 2016 14:04:22 -0600 Subject: [PATCH] Change flag::sortloot to xchar 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/flag.h b/include/flag.h index 26009e26a..b9cd17f6b 100644 --- a/include/flag.h +++ b/include/flag.h @@ -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-- */