nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16b7f34
)
lib/stream: BufferedIStream.read_all use Buffer[j] instead of Buffer.chars[]
author
Jean Privat
<jean@pryen.org>
Wed, 27 Aug 2014 02:15:02 +0000
(22:15 -0400)
committer
Jean 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
patch
|
blob
|
history
diff --git
a/lib/standard/stream.nit
b/lib/standard/stream.nit
index
a94601c
..
d14e82f
100644
(file)
--- a/
lib/standard/stream.nit
+++ b/
lib/standard/stream.nit
@@
-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