lib/core: Fix bug in StringByteView, misuse of `String::length`
authorLucas Bajolet <r4pass@hotmail.com>
Mon, 21 Sep 2015 17:07:49 +0000 (13:07 -0400)
committerLucas 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

index b1e6a04..6cf79bf 100644 (file)
@@ -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)