~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New CRC32 implementation, from scratch, not copyrighted by somebody else!
[sgt/putty]
/
sshrsa.c
diff --git
a/sshrsa.c
b/sshrsa.c
index
71e1d63
..
3a017c2
100644
(file)
--- a/
sshrsa.c
+++ b/
sshrsa.c
@@
-126,7
+126,8
@@
static void bigmod(unsigned short *a, unsigned short *m, int len)
q--;
t -= m1;
r = (r + m0) & 0xffff; /* overflow? */
q--;
t -= m1;
r = (r + m0) & 0xffff; /* overflow? */
- if (r >= m0 && t > ((unsigned long) r << 16) + a[i+1])
+ if (r >= (unsigned long)m0 &&
+ t > ((unsigned long) r << 16) + a[i+1])
q--;
}
q--;
}