From: mdw Date: Wed, 26 Oct 2005 15:42:43 +0000 (+0000) Subject: Correctly work with the bizarre negative bases the @mptext@ functions allow. X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/commitdiff_plain/0d33761c98541cd3aa57f5eca28d8770d1bd4a10 Correctly work with the bizarre negative bases the @mptext@ functions allow. --- 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++;