Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-08-05 09:48:29 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-08-05 09:54:34 +0300
commitf5acfd9c04697ee046297e1c7b36d0cef9e2440a (patch)
tree5fe8b83b7f08e6eba5d40a92e0ae30b22d12d0af /source/creator
parentd8582d966fe4ae46c82fcbb69d3d0ca62238ea93 (diff)
Cleanup: remove redundant parenthesis
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator_args.c4
1 files changed, 2 insertions, 2 deletions
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;