From f5acfd9c04697ee046297e1c7b36d0cef9e2440a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 5 Aug 2021 16:48:29 +1000 Subject: Cleanup: remove redundant parenthesis --- source/creator/creator_args.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/creator/creator_args.c') diff --git a/source/creator/creator_args.c b/source/creator/creator_args.c index c75174dfff0..0f450624691 100644 --- a/source/creator/creator_args.c +++ b/source/creator/creator_args.c @@ -121,7 +121,7 @@ static bool parse_int_relative(const char *str, *r_err_msg = msg; return false; } - if ((errno == ERANGE) || ((value < INT_MIN || value > INT_MAX))) { + if ((errno == ERANGE) || ((value < INT_MIN) || (value > INT_MAX))) { static const char *msg = "exceeds range"; *r_err_msg = msg; return false; @@ -225,7 +225,7 @@ static bool parse_int_strict_range(const char *str, *r_err_msg = msg; return false; } - if ((errno == ERANGE) || ((value < min || value > max))) { + if ((errno == ERANGE) || ((value < min) || (value > max))) { static const char *msg = "exceeds range"; *r_err_msg = msg; return false; -- cgit v1.2.3