Allocate slightly less memory.
authormdw <mdw>
Fri, 10 Dec 1999 23:23:26 +0000 (23:23 +0000)
committermdw <mdw>
Fri, 10 Dec 1999 23:23:26 +0000 (23:23 +0000)
mptext.c

index 2894be4..b216fea 100644 (file)
--- a/mptext.c
+++ b/mptext.c
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: mptext.c,v 1.2 1999/11/20 22:24:15 mdw Exp $
+ * $Id: mptext.c,v 1.3 1999/12/10 23:23:26 mdw Exp $
  *
  * Textual representation of multiprecision numbers
  *
@@ -30,6 +30,9 @@
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: mptext.c,v $
+ * Revision 1.3  1999/12/10 23:23:26  mdw
+ * Allocate slightly less memory.
+ *
  * Revision 1.2  1999/11/20 22:24:15  mdw
  * Use function versions of MPX_UMULN and MPX_UADDN.
  *
@@ -88,7 +91,7 @@ mp *mp_read(mp *m, int radix, const mptext_ops *ops, void *p)
 
   /* --- Initialize the destination number --- */
 
-  MP_MODIFY(m, 16);
+  MP_MODIFY(m, 4);
   m->vl = m->v;
   m->f &= ~MP_UNDEF;
 
@@ -296,6 +299,7 @@ static int verify(dstr *v)
   }
 
   dstr_destroy(&d);
+  assert(mparena_count(MPARENA_GLOBAL) == 0);
   return (ok);
 }