aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source
diff options
context:
space:
mode:
authorEduardo Julian2018-12-28 23:33:39 -0400
committerEduardo Julian2018-12-28 23:33:39 -0400
commitcc18830e230ea44960fb931058f7acd9f19f62bb (patch)
treec9a3e2379e3c6d93a42267d644d9eb1b5294c8c6 /stdlib/source
parent5cfe09efd2b2605aa023d69ebdb7e97d845caab4 (diff)
Fixed bug when parsing blobs.
Diffstat (limited to 'stdlib/source')
-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))]