summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorKalle Sommer Nielsen <kalle@php.net>2015-10-22 03:47:46 +0200
committerKalle Sommer Nielsen <kalle@php.net>2015-10-22 03:47:46 +0200
commitb26593628fea6f56e39ffbcfb760751c252b6d23 (patch)
tree1fa79e600d835ae9b63c41ec24b7b13ce94055b1 /ext
parent53895bdf49498dd3443f05c9ff465fe84199cd57 (diff)
downloadphp-git-b26593628fea6f56e39ffbcfb760751c252b6d23.tar.gz
Fix build on Windows
Diffstat (limited to 'ext')
-rw-r--r--ext/hash/hash_sha3.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/hash/hash_sha3.c b/ext/hash/hash_sha3.c
index 5898009594..0f01f16d64 100644
--- a/ext/hash/hash_sha3.c
+++ b/ext/hash/hash_sha3.c
@@ -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;
}