From 5078b9077df0dd44040a30d5b1effdbbe9443eec Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 28 Oct 2014 19:16:35 +0000 Subject: [PATCH] Fix interned string hashing, we need to hash content --- src/interned_string.hh | 3 +-- 1 file changed, 1 insertion(+), 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{}(str.data()) ^ - hash{}((int)str.length()); + return Kakoune::hash_data(str.data(), (int)str.length()); } }; }