diff --git a/Macros.h b/Macros.h index e42cbe53..2f92acb1 100644 --- a/Macros.h +++ b/Macros.h @@ -12,7 +12,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