summaryrefslogtreecommitdiffstats
path: root/src/core/common.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-08-07 19:38:49 +0200
committerGitHub <noreply@github.com>2019-08-07 19:38:49 +0200
commit1fa2fe566c83412a93ea19531437c4868ec0c091 (patch)
tree40109a8e21b7271763ff8375ed70905a3b716446 /src/core/common.h
parentfixed COMMAND_ADD_BLIP_FOR_COORD_OLD (diff)
parentMinor fixes (diff)
downloadre3-1fa2fe566c83412a93ea19531437c4868ec0c091.tar
re3-1fa2fe566c83412a93ea19531437c4868ec0c091.tar.gz
re3-1fa2fe566c83412a93ea19531437c4868ec0c091.tar.bz2
re3-1fa2fe566c83412a93ea19531437c4868ec0c091.tar.lz
re3-1fa2fe566c83412a93ea19531437c4868ec0c091.tar.xz
re3-1fa2fe566c83412a93ea19531437c4868ec0c091.tar.zst
re3-1fa2fe566c83412a93ea19531437c4868ec0c091.zip
Diffstat (limited to 'src/core/common.h')
-rw-r--r--src/core/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/common.h b/src/core/common.h
index 97a25a3f..2b4c466a 100644
--- a/src/core/common.h
+++ b/src/core/common.h
@@ -179,7 +179,7 @@ void re3_assert(const char *expr, const char *filename, unsigned int lineno, con
#define max(a, b) (((a) > (b)) ? (a) : (b))
#define min(a, b) (((a) < (b)) ? (a) : (b))
-#define ABS(a) (((a) < 0) ? (-a) : (a))
+#define ABS(a) (((a) < 0) ? (-(a)) : (a))
#define norm(value, min, max) (((value) < (min)) ? 0 : (((value) > (max)) ? 1 : (((value) - (min)) / ((max) - (min)))))