symm/poly1305.c: Fix 64-bit shift error.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 6 Apr 2017 16:31:30 +0000 (17:31 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 6 Apr 2017 16:31:30 +0000 (17:31 +0100)
Thank you, GCC, for warning about that.

symm/poly1305.c

index b2b2c55..9cc97ea 100644 (file)
@@ -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--; }