diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-10-06 11:39:27 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-10-06 11:46:41 +0200 |
commit | db159e758020a1a224eb6097ba697c70dacc1818 (patch) | |
tree | 582d244e280525c59e4ab3d834f163c00cdd5bfc /Macros.h | |
parent | db472075a4fb82bf6a491848941a5b9c92526c39 (diff) |
Enclose CLAMP macro arguments in parentheses
Diffstat (limited to 'Macros.h')
-rw-r--r-- | Macros.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -10,7 +10,7 @@ #endif #ifndef CLAMP -#define CLAMP(x, low, high) (assert(low < high), ((x) > (high)) ? (high) : MAXIMUM(x, low)) +#define CLAMP(x, low, high) (assert((low) < (high)), ((x) > (high)) ? (high) : MAXIMUM(x, low)) #endif #ifndef ARRAYSIZE |