nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib/core: Improved running time for reset
[nit.git]
/
lib
/
core
/
text
/
flat.nit
diff --git
a/lib/core/text/flat.nit
b/lib/core/text/flat.nit
index
2533323
..
c3a2fed
100644
(file)
--- a/
lib/core/text/flat.nit
+++ b/
lib/core/text/flat.nit
@@
-922,9
+922,9
@@
class FlatBuffer
redef fun clear do
is_dirty = true
- if written then reset
_bytelen = 0
_length = 0
+ if written then reset
end
redef fun empty do return new Buffer