aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/lux/data/format/binary.lux2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/source/lux/data/format/binary.lux b/stdlib/source/lux/data/format/binary.lux
index 1be3e7a52..7c6d463b3 100644
--- a/stdlib/source/lux/data/format/binary.lux
+++ b/stdlib/source/lux/data/format/binary.lux
@@ -227,7 +227,7 @@
(function (_ [offset binary])
(do error.Monad<Error>
[#let [end (n/+ size offset)]
- output (binary.slice offset end binary)]
+ output (binary.slice offset (.dec end) binary)]
(wrap [[end binary] output]))))
#writer (function (_ value)
(let [size (|> value binary.size (i64.and mask))]