Skip to content

Commit

Permalink
Add some parens around a macro argument
Browse files Browse the repository at this point in the history
  • Loading branch information
amalloy authored and yrmvgh committed Apr 4, 2017
1 parent bcc122f commit 70706c5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crawl-ref/source/mon-death.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
|| (x) == KILL_YOU_CONF)
#define MON_KILL(x) ((x) == KILL_MON || (x) == KILL_MON_MISSILE)

#define SAME_ATTITUDE(x) (x->friendly() ? BEH_FRIENDLY : \
x->good_neutral() ? BEH_GOOD_NEUTRAL : \
x->strict_neutral() ? BEH_STRICT_NEUTRAL : \
x->neutral() ? BEH_NEUTRAL \
: BEH_HOSTILE)
#define SAME_ATTITUDE(x) ((x)->friendly() ? BEH_FRIENDLY : \
(x)->good_neutral() ? BEH_GOOD_NEUTRAL : \
(x)->strict_neutral() ? BEH_STRICT_NEUTRAL : \
(x)->neutral() ? BEH_NEUTRAL \
: BEH_HOSTILE)

struct bolt;

Expand Down

0 comments on commit 70706c5

Please sign in to comment.