From 495a7e78983fd55116cb4ffbc523ebd2a1722a96 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sun, 16 Feb 2025 10:50:04 +0200 Subject: [PATCH] Silence a suggested parenthesis warning --- src/makemon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/makemon.c b/src/makemon.c index 77ce688eb..8681eefc6 100644 --- a/src/makemon.c +++ b/src/makemon.c @@ -1763,9 +1763,9 @@ cmp_init_mongen_order(const void *p1, const void *p2) /* incorporate the mlet into the sort values for comparison */ int difficulty1 = - ((int) mons[i1].difficulty + offset1 | ((int) mons[i1].mlet << 8)), + ((int) (mons[i1].difficulty + offset1) | ((int) mons[i1].mlet << 8)), difficulty2 = - ((int) mons[i2].difficulty + offset2 | ((int) mons[i2].mlet << 8)); + ((int) (mons[i2].difficulty + offset2) | ((int) mons[i2].mlet << 8)); return difficulty1 - difficulty2; }