~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
math/mpmont.c: Make REDC coefficient as long as the modulus.
[catacomb]
/
math
/
mpint.h
diff --git
a/math/mpint.h
b/math/mpint.h
index
1b0a762
..
6b733d1
100644
(file)
--- a/
math/mpint.h
+++ b/
math/mpint.h
@@
-133,7
+133,7
@@
/* --- Do all the arithmetic in negative numbers --- */ \
\
while (_v < _vl && _max > 0) { \
- _i -=
*_v << _s;
\
+ _i -=
(type)*_v << _s;
\
_s += MPW_BITS; \
_v++; \
_max /= (mpd)MPW_MAX + 1; \