X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/064939b95c00742c8fafeeac3d9b5e3a1c43774e..0d33761c98541cd3aa57f5eca28d8770d1bd4a10:/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++;