com php-src: Fix build on Windows: ext/hash/hash_sha3.c
| From: | Kalle Sommer Nielsen | Date: | Thu, 22 Oct 2015 01:47:46 +0000 |
| Subject: | com php-src: Fix build on Windows: ext/hash/hash_sha3.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-89480@lists.php.net to get a copy of this message | ||
Commit: b26593628fea6f56e39ffbcfb760751c252b6d23
Author: Kalle Sommer Nielsen <kalle@php.net> Thu, 22 Oct 2015 03:47:46 +0200
Parents: 53895bdf49498dd3443f05c9ff465fe84199cd57
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b26593628fea6f56e39ffbcfb760751c252b6d23
Log:
Fix build on Windows
Changed paths:
M ext/hash/hash_sha3.c
Diff:
diff --git a/ext/hash/hash_sha3.c b/ext/hash/hash_sha3.c
index 5898009..0f01f16 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;
}