diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-12-31 15:14:07 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-12-31 15:14:07 -0500 |
| commit | 41f92837bebae1de783dc7f4a8f880011c72757c (patch) | |
| tree | 4730711a7c13c19c135d0432be4d1fe9b34c1f77 /src/stdlib/numX.c.h | |
| parent | 1f13fa92a87bec65d1760266b108a5485bc14c7a (diff) | |
| parent | dbae987f1fb54da795185a03f4c00d56a639f8cd (diff) | |
Merge branch 'dev' into static-dependencies
Diffstat (limited to 'src/stdlib/numX.c.h')
| -rw-r--r-- | src/stdlib/numX.c.h | 2 |
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) { |
