nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8926171
)
stdlib/strings: Repaired hash for Buffers.
author
Lucas Bajolet
<r4pass@hotmail.com>
Fri, 7 Mar 2014 16:56:54 +0000
(11:56 -0500)
committer
Lucas Bajolet
<r4pass@hotmail.com>
Tue, 25 Mar 2014 19:45:47 +0000
(15:45 -0400)
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
lib/standard/string.nit
patch
|
blob
|
history
diff --git
a/lib/standard/string.nit
b/lib/standard/string.nit
index
b34e043
..
dd5ed1b
100644
(file)
--- a/
lib/standard/string.nit
+++ b/
lib/standard/string.nit
@@
-1012,6
+1012,12
@@
abstract class Buffer
# Adds the content of text `s` at the end of self
fun append(s: Text) is abstract
+ redef fun hash
+ do
+ if is_dirty then hash_cache = null
+ return super
+ end
+
end
# Mutable strings of characters.