nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd632cf
)
lib/core: Improved running time for reset
author
Lucas Bajolet
<r4pass@hotmail.com>
Mon, 2 May 2016 19:32:26 +0000
(15:32 -0400)
committer
Lucas Bajolet
<r4pass@hotmail.com>
Tue, 3 May 2016 03:25:22 +0000
(23:25 -0400)
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
lib/core/text/flat.nit
patch
|
blob
|
history
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