From 0d33761c98541cd3aa57f5eca28d8770d1bd4a10 Mon Sep 17 00:00:00 2001 From: mdw Date: Wed, 26 Oct 2005 15:42:43 +0000 Subject: [PATCH] Correctly work with the bizarre negative bases the @mptext@ functions allow. --- mptext-len.c | 1 + 1 file changed, 1 insertion(+) 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++; -- 2.11.0