From: Mark Wooding Date: Thu, 6 Apr 2017 16:31:30 +0000 (+0100) Subject: symm/poly1305.c: Fix 64-bit shift error. X-Git-Tag: 2.4.0~69 X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/commitdiff_plain/ac082cc94574e921813a11a50e60f0557af04c7c symm/poly1305.c: Fix 64-bit shift error. Thank you, GCC, for warning about that. --- 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--; }