nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f25b01
)
lib/core: Faster access to length in ropes
author
Lucas Bajolet
<r4pass@hotmail.com>
Fri, 22 Apr 2016 20:08:31 +0000
(16:08 -0400)
committer
Lucas Bajolet
<r4pass@hotmail.com>
Fri, 22 Apr 2016 20:08:31 +0000
(16:08 -0400)
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
lib/core/text/ropes.nit
patch
|
blob
|
history
diff --git
a/lib/core/text/ropes.nit
b/lib/core/text/ropes.nit
index
1a91e00
..
10c1acf
100644
(file)
--- a/
lib/core/text/ropes.nit
+++ b/
lib/core/text/ropes.nit
@@
-172,7
+172,7
@@
private class Concat
from = 0
end
- var ln = length
+ var ln = _length
if (count + from) > ln then count = ln - from
if count <= 0 then return ""
var end_index = from + count - 1