From 7bbc1f0130ce88456d611f84041a55b53f433310 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Thu, 31 Jan 2019 21:31:26 +0200 Subject: [PATCH] Fix warning Fix "using integer constants in boolean context" --- src/botl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/botl.c b/src/botl.c index d8244734d..a527f6406 100644 --- a/src/botl.c +++ b/src/botl.c @@ -3069,8 +3069,8 @@ choose_value: op, aval.a_int, is_out_of_range); goto choose_value; } else if (dt == ANY_LONG - && (aval.a_long < (lt_gt_eq == GT_VALUE) ? -1L - : (lt_gt_eq == LT_VALUE) ? 1L : 0L)) { + && (aval.a_long < ((lt_gt_eq == GT_VALUE) ? -1L + : (lt_gt_eq == LT_VALUE) ? 1L : 0L))) { pline("%s'%s%ld'%s", threshold_value, op, aval.a_long, is_out_of_range); goto choose_value;