diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2019-08-06 23:32:19 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2019-08-06 23:32:19 +0200 |
commit | 4ae4bc94c692d9fe5781d36a7be6ab72803f6162 (patch) | |
tree | bacd3caa49fb507ff6d4f3b15b89d4bb85348d5d /src/core/common.h | |
parent | fixed COMMAND_ADD_BLIP_FOR_COORD_OLD (diff) | |
download | re3-4ae4bc94c692d9fe5781d36a7be6ab72803f6162.tar re3-4ae4bc94c692d9fe5781d36a7be6ab72803f6162.tar.gz re3-4ae4bc94c692d9fe5781d36a7be6ab72803f6162.tar.bz2 re3-4ae4bc94c692d9fe5781d36a7be6ab72803f6162.tar.lz re3-4ae4bc94c692d9fe5781d36a7be6ab72803f6162.tar.xz re3-4ae4bc94c692d9fe5781d36a7be6ab72803f6162.tar.zst re3-4ae4bc94c692d9fe5781d36a7be6ab72803f6162.zip |
Diffstat (limited to 'src/core/common.h')
-rw-r--r-- | src/core/common.h | 2 |
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))))) |