From c212eb49dfd808aae0a146cb978de2c5e9eb2490 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 19 Sep 2006 17:56:14 +0000 Subject: Change type to size_t so that 64 bit platforms dont whine about data loss when casting git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5303 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/hashcomp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/hashcomp.cpp') 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::operator()(const string &s) const * only with *x replaced with lowermap[*x]. * This avoids a copy to use hash */ - 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); -- cgit v1.2.3