summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/hashcomp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp
index a1e097509..7eb7075c7 100644
--- a/src/hashcomp.cpp
+++ b/src/hashcomp.cpp
@@ -86,7 +86,7 @@ size_t nspace::hash<string>::operator()(const string &s) const
* only with *x replaced with lowermap[*x].
* This avoids a copy to use hash<const char*>
*/
- register unsigned long t = 0;
+ register size_t t = 0;
for (std::string::const_iterator x = s.begin(); x != s.end(); x++) /* ++x not x++, so we don't hash the \0 */
t = 5 * t + lowermap[(unsigned char)*x];
return size_t(t);