[Gmp-commit] /var/hg/gmp-proj/mini-gmp: mpz_init2: alloc requested limbs.

mercurial at gmplib.org mercurial at gmplib.org
Thu Jan 12 08:31:30 CET 2012


details:   /var/hg/gmp-proj/mini-gmp/rev/c66bdc7f42cf
changeset: 66:c66bdc7f42cf
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Thu Jan 12 08:31:18 2012 +0100
description:
mpz_init2: alloc requested limbs.

diffstat:

 mini-gmp.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r e6a42a9149a0 -r c66bdc7f42cf mini-gmp.c
--- a/mini-gmp.c	Thu Jan 12 08:27:28 2012 +0100
+++ b/mini-gmp.c	Thu Jan 12 08:31:18 2012 +0100
@@ -1272,7 +1272,7 @@
 
   r->_mp_alloc = rn;
   r->_mp_size = 0;
-  r->_mp_d = gmp_xalloc_limbs (1);  
+  r->_mp_d = gmp_xalloc_limbs (rn);  
 }
 
 void


More information about the gmp-commit mailing list