summaryrefslogtreecommitdiff
path: root/src/lib/sha3.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/sha3.c')
-rw-r--r--src/lib/sha3.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/sha3.c b/src/lib/sha3.c
index 74f971ab..76ddbae6 100644
--- a/src/lib/sha3.c
+++ b/src/lib/sha3.c
@@ -52,8 +52,7 @@
#include <assert.h>
#include <string.h>
-#define IS_ALIGNED_64(p) (0 == (7 & ((const uint8_t *) (p) \
- - (const uint8_t *) 0)))
+#define IS_ALIGNED_64(p) (0 == (7 & ((uintptr_t) (p))))
#define I64(x) x##LL
#define ROTL64(qword, n) ((qword) << (n) ^ ((qword) >> (64 - (n))))