nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib/core: Removed `last_byte` attribute in `FlatString` as it is useless
[nit.git]
/
lib
/
core
/
stream.nit
diff --git
a/lib/core/stream.nit
b/lib/core/stream.nit
index
e8cb232
..
19ed842
100644
(file)
--- a/
lib/core/stream.nit
+++ b/
lib/core/stream.nit
@@
-207,12
+207,12
@@
abstract class Reader
# if this is the best size or not
var chunksz = 129
if chunksz > remsp then
# if this is the best size or not
var chunksz = 129
if chunksz > remsp then
- rets += new FlatString.with_infos(sits, remsp, pos, pos + remsp - 1)
+ rets += new FlatString.with_infos(sits, remsp, pos)
break
end
var st = sits.find_beginning_of_char_at(pos + chunksz - 1)
var bytelen = st - pos
break
end
var st = sits.find_beginning_of_char_at(pos + chunksz - 1)
var bytelen = st - pos
- rets += new FlatString.with_infos(sits, bytelen, pos, st - 1)
+ rets += new FlatString.with_infos(sits, bytelen, pos)
pos = st
remsp -= bytelen
end
pos = st
remsp -= bytelen
end