aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/numX.c.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdlib/numX.c.h')
-rw-r--r--src/stdlib/numX.c.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdlib/numX.c.h b/src/stdlib/numX.c.h
index 2d652ebe..bef78c5b 100644
--- a/src/stdlib/numX.c.h
+++ b/src/stdlib/numX.c.h
@@ -193,7 +193,7 @@ CONSTFUNC NUM_T NAMESPACED(mix)(NUM_T amount, NUM_T x, NUM_T y) {
public
CONSTFUNC bool NAMESPACED(is_between)(const NUM_T x, const NUM_T low, const NUM_T high) {
- return low <= x && x <= high;
+ return (low <= x && x <= high) || (high <= x && x <= low);
}
public
CONSTFUNC NUM_T NAMESPACED(clamped)(NUM_T x, NUM_T low, NUM_T high) {