aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/bytes.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-12-31 15:14:07 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-12-31 15:14:07 -0500
commit41f92837bebae1de783dc7f4a8f880011c72757c (patch)
tree4730711a7c13c19c135d0432be4d1fe9b34c1f77 /src/stdlib/bytes.c
parent1f13fa92a87bec65d1760266b108a5485bc14c7a (diff)
parentdbae987f1fb54da795185a03f4c00d56a639f8cd (diff)
Merge branch 'dev' into static-dependencies
Diffstat (limited to 'src/stdlib/bytes.c')
-rw-r--r--src/stdlib/bytes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdlib/bytes.c b/src/stdlib/bytes.c
index 2b2a6507..25f95de1 100644
--- a/src/stdlib/bytes.c
+++ b/src/stdlib/bytes.c
@@ -32,7 +32,7 @@ PUREFUNC public Text_t Byte$as_text(const void *b, bool colorize, const TypeInfo
public
CONSTFUNC bool Byte$is_between(const Byte_t x, const Byte_t low, const Byte_t high) {
- return low <= x && x <= high;
+ return (low <= x && x <= high) || (high <= x && x <= low);
}
public