nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib/core: Fixed bug in `BytesIterator::init with_buffer`
[nit.git]
/
lib
/
core
/
bytes.nit
diff --git
a/lib/core/bytes.nit
b/lib/core/bytes.nit
index
deddbd8
..
75d7ccd
100644
(file)
--- a/
lib/core/bytes.nit
+++ b/
lib/core/bytes.nit
@@
-278,7
+278,7
@@
private class BytesIterator
var max: Int
- init with_buffer(b: Bytes) do init(b.items, 0, b.length - 1)
+ init with_buffer(b: Bytes) do init(b.items, 0, b.length)
redef fun is_ok do return index < max