summaryrefslogtreecommitdiffstats
path: root/Macros.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-10-06 11:39:27 +0200
committercgzones <cgzones@googlemail.com>2020-10-06 11:46:41 +0200
commitdb159e758020a1a224eb6097ba697c70dacc1818 (patch)
tree582d244e280525c59e4ab3d834f163c00cdd5bfc /Macros.h
parentdb472075a4fb82bf6a491848941a5b9c92526c39 (diff)
Enclose CLAMP macro arguments in parentheses
Diffstat (limited to 'Macros.h')
-rw-r--r--Macros.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Macros.h b/Macros.h
index bb3a90e0..00413f4e 100644
--- a/Macros.h
+++ b/Macros.h
@@ -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

© 2014-2024 Faster IT GmbH | imprint | privacy policy