X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/b817bfc642225b8c3c0b6a7e42d1fb949b61a606..3688eb757240b2332f67ec827be8caf6f6abe924:/mptext.c diff --git a/mptext.c b/mptext.c index 8130679..d528386 100644 --- a/mptext.c +++ b/mptext.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: mptext.c,v 1.18 2004/04/08 01:36:15 mdw Exp $ + * $Id$ * * Textual representation of multiprecision numbers * @@ -542,7 +542,7 @@ static int complicated(mp *m, int radix, mp **pr, unsigned i, unsigned z, assert(i); mp_div(&q, &m, m, pr[i]); - if (!MP_LEN(q)) + if (MP_ZEROP(q)) d = z; else { if (z > d) @@ -675,7 +675,7 @@ int mp_write(mp *m, int radix, const mptext_ops *ops, void *p) /* --- If the number is negative, sort that out --- */ - if (m->f & MP_NEG) { + if (MP_NEGP(m)) { if (ops->put("-", 1, p)) return (EOF); m->f &= ~MP_NEG;