]> granicus.if.org Git - php/commitdiff
Fix build on Windows
authorKalle Sommer Nielsen <kalle@php.net>
Thu, 22 Oct 2015 01:47:46 +0000 (03:47 +0200)
committerKalle Sommer Nielsen <kalle@php.net>
Thu, 22 Oct 2015 01:47:46 +0000 (03:47 +0200)
ext/hash/hash_sha3.c

index 5898009594f36272b715bc86505fdadae7a0deef..0f01f16d6491c32c927a9c7d25a21fafc80b28d6 100644 (file)
@@ -106,8 +106,10 @@ static void permute(PHP_SHA3_CTX* ctx) {
                        for (t = 0; t < 24; ++t) {
                                unsigned char r = ((t + 1) * (t + 2) / 2) % 64;
                                unsigned char Y = (2*x + 3*y) % 5;
-                               x = y; y = Y;
-                               php_hash_uint64 temp = readLane(x, y);
+                               php_hash_uint64 temp;
+                               x = y;
+                               y = Y;
+                               temp = readLane(x, y);
                                writeLane(x, y, rol64(current, r));
                                current = temp;
                        }