chiark
/
gitweb
/
~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
symm/poly1305.c: Fix 64-bit shift error.
[catacomb]
/
symm
/
poly1305.c
diff --git
a/symm/poly1305.c
b/symm/poly1305.c
index b2b2c55ac1e355f268c6cec42262aeb1caa28b1a..9cc97eab601f2cb187c0547bbf9e0502c1ea5ba2 100644
(file)
--- 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 (1
ul
<< (ULONG_BITS - 1))
if (n) {
i = ULONG_BITS;
while (!(n & BIT)) { n <<= 1; i--; }