aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-11-05 16:59:29 +0100
committerMattias Andrée <maandree@operamail.com>2014-11-05 16:59:48 +0100
commit3c276a85f09c3e98540abc5d32c946ff1a80d4ab (patch)
treee06ada33f4a9cfd1707a2def5b4a44f86c71ce42 /src
parentm (diff)
downloadlibkeccak-3c276a85f09c3e98540abc5d32c946ff1a80d4ab.tar.gz
libkeccak-3c276a85f09c3e98540abc5d32c946ff1a80d4ab.tar.bz2
libkeccak-3c276a85f09c3e98540abc5d32c946ff1a80d4ab.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
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))))
/**