nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5c3020
)
lib/core: Fix bug in StringByteView, misuse of `String::length`
author
Lucas Bajolet
<r4pass@hotmail.com>
Mon, 21 Sep 2015 17:07:49 +0000
(13:07 -0400)
committer
Lucas Bajolet
<r4pass@hotmail.com>
Mon, 21 Sep 2015 17:09:35 +0000
(13:09 -0400)
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
lib/core/text/abstract_text.nit
patch
|
blob
|
history
diff --git
a/lib/core/text/abstract_text.nit
b/lib/core/text/abstract_text.nit
index
b1e6a04
..
6cf79bf
100644
(file)
--- a/
lib/core/text/abstract_text.nit
+++ b/
lib/core/text/abstract_text.nit
@@
-1050,7
+1050,7
@@
private abstract class StringByteView
redef fun is_empty do return target.is_empty
- redef fun length do return target.length
+ redef fun length do return target.bytelen
redef fun iterator do return self.iterator_from(0)