X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/d2d54c98e2d65c46c5fe6519812aa4c6ea55ea02..7eaaecf58694345b4e40db9981c0c2ac0f728378:/mpint.h diff --git a/mpint.h b/mpint.h index e44c39e..3bfe36a 100644 --- a/mpint.h +++ b/mpint.h @@ -70,7 +70,7 @@ MP_ENSURE(_d, _sz); \ } \ _d->v[_o++] = MPW(_i); \ - if (_i < MPW_MAX) \ + if (_i <= MPW_MAX) \ break; \ else \ _i /= (type)MPW_MAX + 1; \ @@ -83,7 +83,7 @@ MP_ENSURE(_d, _sz); \ } \ _d->v[_o++] = MPW(-_i); \ - if (_i > -MPW_MAX) \ + if (_i >= -MPW_MAX) \ break; \ else \ _i /= (type)MPW_MAX + 1; \