From 136b8e0f8c75f61e063f9c4f0acdf0c139d0f892 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 19 Sep 2006 13:16:04 +0000 Subject: Use ++x not x++, to more closely match what stl does git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5299 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/hashcomp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index 168bcbe0f..7df7960f9 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -87,7 +87,7 @@ size_t nspace::hash::operator()(const string &s) const * This avoids a copy to use hash */ unsigned long t = 0; - for (const char* x = s.c_str(); *x; x++) + for (const char* x = s.c_str(); *x; ++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