]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Merged Postfix-Prefix branch: Fix decrement operator in hash4 function(lib/hash.c)
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Thu, 26 Jul 2012 17:36:58 +0000 (20:36 +0300)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Thu, 26 Jul 2012 17:36:58 +0000 (20:36 +0300)
The "Postfix-Prefix" patch code is not equivalent with the replaced code inside
hash4 function.

lib/hash.cc

index f0e4980c8cce06f891636b3e5b061c0aa8807574..59366c46293b88d29ee846a1038ad3988f8d5306 100644 (file)
@@ -122,7 +122,8 @@ hash4(const void *data, unsigned int size)
     case 1:
         HASH4;
     }
-    while (--loop) {
+    while (loop) {
+        --loop;
         HASH4;
         HASH4;
         HASH4;