summaryrefslogtreecommitdiff
path: root/src/interned_string.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-10-28 19:16:35 +0000
committerMaxime Coste <frrrwww@gmail.com>2014-10-28 19:16:35 +0000
commit5078b9077df0dd44040a30d5b1effdbbe9443eec (patch)
tree21a1ed758ebe56d0613cfbc170630a7d85da92ce /src/interned_string.hh
parent54fd0aab221efbfa72ea8245e27fa6b9f2b74dae (diff)
Fix interned string hashing, we need to hash content
Diffstat (limited to 'src/interned_string.hh')
-rw-r--r--src/interned_string.hh3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/interned_string.hh b/src/interned_string.hh
index b280fde9..5c87b3f4 100644
--- a/src/interned_string.hh
+++ b/src/interned_string.hh
@@ -128,8 +128,7 @@ namespace std
{
size_t operator()(const Kakoune::InternedString& str) const
{
- return hash<const char*>{}(str.data()) ^
- hash<int>{}((int)str.length());
+ return Kakoune::hash_data(str.data(), (int)str.length());
}
};
}