math/strongprime.c: Replace inexplicable exponentiation with extended-gcd.
[catacomb] / math / mpint.h
index 1b0a762..6b733d1 100644 (file)
   /* --- 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;                                          \