chiark / gitweb /
symm/poly1305.c: Fix 64-bit shift error.
[catacomb] / symm / poly1305.c
index b2b2c55ac1e355f268c6cec42262aeb1caa28b1a..9cc97eab601f2cb187c0547bbf9e0502c1ea5ba2 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--; }