From ac082cc94574e921813a11a50e60f0557af04c7c Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Thu, 6 Apr 2017 17:31:30 +0100 Subject: [PATCH] symm/poly1305.c: Fix 64-bit shift error. Thank you, GCC, for warning about that. --- symm/poly1305.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/symm/poly1305.c b/symm/poly1305.c index b2b2c55a..9cc97eab 100644 --- a/symm/poly1305.c +++ b/symm/poly1305.c @@ -662,7 +662,7 @@ void poly1305_concat(poly1305_ctx *ctx, #else for (i = 1; i < 12; i++) x[i] = 0; #endif -#define BIT (1 << (ULONG_BITS - 1)) +#define BIT (1ul << (ULONG_BITS - 1)) if (n) { i = ULONG_BITS; while (!(n & BIT)) { n <<= 1; i--; } -- 2.11.0