lib/stream: BufferedIStream.read_all use Buffer[j] instead of Buffer.chars[]
authorJean Privat <jean@pryen.org>
Wed, 27 Aug 2014 02:15:02 +0000 (22:15 -0400)
committerJean Privat <jean@pryen.org>
Wed, 27 Aug 2014 02:15:02 +0000 (22:15 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

lib/standard/stream.nit

index a94601c..d14e82f 100644 (file)
@@ -202,7 +202,7 @@ abstract class BufferedIStream
                        var j = _buffer_pos
                        var k = _buffer.length
                        while j < k do
-                               s.add(_buffer.chars[j])
+                               s.add(_buffer[j])
                                j += 1
                        end
                        _buffer_pos = j