aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/bytes.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-08-23 17:32:37 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-08-23 17:32:37 -0400
commitecf08ab61fe49101b6c769badf362d21d8699df4 (patch)
tree051fd862221c43cdc521ce1e5123238de3272735 /src/stdlib/bytes.c
parentb033c491b8df6e6c4bc11f9941f2bba93bb9d10f (diff)
Fix some LSP issues, mostly unused imports
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 130a645f..5a581e7e 100644
--- a/src/stdlib/bytes.c
+++ b/src/stdlib/bytes.c
@@ -102,7 +102,7 @@ public CONSTFUNC Closure_t Byte$to(Byte_t first, Byte_t last, OptionalInt8_t ste
public PUREFUNC Byte_t Byte$from_int(Int_t i, bool truncate) {
if unlikely (!truncate && Int$compare_value(i, I_small(0xFF)) > 0)
fail("This value is too large to convert to a byte without truncation: ", i);
- else if unlikely (!truncate && Int$compare_value(i, I_small(0)) < 0)
+ else if unlikely (!truncate && Int$compare_value(i, I_small(0)) < 0)
fail("Negative values can't be converted to bytes: ", i);
return (Byte_t)(i.small >> 2);
}