X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/a69a3efddbe1261f55e90d4ff477053ab80663a5..80be023065ced106a4078a36371c135a60d2bd6c:/mptext-len.c diff --git a/mptext-len.c b/mptext-len.c index cf208af..ffb2df9 100644 --- a/mptext-len.c +++ b/mptext-len.c @@ -73,6 +73,7 @@ size_t mptext_len(mp *x, int r) /* --- Find the right pair of points --- */ + if (r < 0) r = -r; do { s = ss; d++;