chiark
/
gitweb
/
~mdw
/
catacomb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57496a5
)
symm/poly1305.c: Fix 64-bit shift error.
author
Mark Wooding
<mdw@distorted.org.uk>
Thu, 6 Apr 2017 16:31:30 +0000
(17:31 +0100)
committer
Mark 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
patch
|
blob
|
blame
|
history
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--; }