Enclose CLAMP macro arguments in parentheses

This commit is contained in:
Christian Göttsche 2020-10-06 11:39:27 +02:00 committed by cgzones
parent db472075a4
commit db159e7580

View File

@ -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