aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/libkeccak/digest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libkeccak/digest.c b/src/libkeccak/digest.c
index a1f3d54..7505827 100644
--- a/src/libkeccak/digest.c
+++ b/src/libkeccak/digest.c
@@ -81,7 +81,7 @@ static const uint_fast64_t RC[] =
* @param n:long Rotation steps, may not be zero
* @return :int_fast64_t The value rotated
*/
-#define rotate64(x, n) ((int_fast64_t)((uint_fast64_t)(x) >> (64 - (n))) + ((x) << (n)))
+#define rotate64(x, n) ((int_fast64_t)(((uint64_t)(x) >> (64L - (n))) + ((uint64_t)(x) << (n))))
/**