diff options
author | Eduardo Julian | 2018-12-28 23:33:39 -0400 |
---|---|---|
committer | Eduardo Julian | 2018-12-28 23:33:39 -0400 |
commit | cc18830e230ea44960fb931058f7acd9f19f62bb (patch) | |
tree | c9a3e2379e3c6d93a42267d644d9eb1b5294c8c6 /stdlib | |
parent | 5cfe09efd2b2605aa023d69ebdb7e97d845caab4 (diff) |
Fixed bug when parsing blobs.
Diffstat (limited to '')
-rw-r--r-- | stdlib/source/lux/data/format/binary.lux | 2 |
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))] |