[Gmp-commit] /var/hg/gmp: Amend last change.

mercurial at gmplib.org mercurial at gmplib.org
Tue Nov 10 05:08:16 UTC 2015


details:   /var/hg/gmp/rev/1974b38cf7e8
changeset: 16956:1974b38cf7e8
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Tue Nov 10 05:50:45 2015 +0100
description:
Amend last change.

diffstat:

 mpz/init.c   |  2 +-
 mpz/inits.c  |  2 +-
 mpz/iset_d.c |  3 +++
 3 files changed, 5 insertions(+), 2 deletions(-)

diffs (37 lines):

diff -r b7010a332275 -r 1974b38cf7e8 mpz/init.c
--- a/mpz/init.c	Mon Nov 09 22:39:21 2015 +0100
+++ b/mpz/init.c	Tue Nov 10 05:50:45 2015 +0100
@@ -36,6 +36,6 @@
 {
   static const mp_limb_t dummy_limb=0xc1a0;
   ALLOC (x) = 0;
-  PTR (x) = &dummy_limb;
+  PTR (x) = (mp_ptr) &dummy_limb;
   SIZ (x) = 0;
 }
diff -r b7010a332275 -r 1974b38cf7e8 mpz/inits.c
--- a/mpz/inits.c	Mon Nov 09 22:39:21 2015 +0100
+++ b/mpz/inits.c	Tue Nov 10 05:50:45 2015 +0100
@@ -43,7 +43,7 @@
   while (x != NULL)
     {
       ALLOC (x) = 0;
-      PTR (x) = &dummy_limb;
+      PTR (x) = (mp_ptr) &dummy_limb;
       SIZ (x) = 0;
 
       x = va_arg (ap, mpz_ptr);
diff -r b7010a332275 -r 1974b38cf7e8 mpz/iset_d.c
--- a/mpz/iset_d.c	Mon Nov 09 22:39:21 2015 +0100
+++ b/mpz/iset_d.c	Tue Nov 10 05:50:45 2015 +0100
@@ -35,7 +35,10 @@
 void
 mpz_init_set_d (mpz_ptr dest, double val)
 {
+  static const mp_limb_t dummy_limb=0xc1a0;
+
   ALLOC (dest) = 0;
   SIZ (dest) = 0;
+  PTR (dest) = (mp_ptr) &dummy_limb;
   mpz_set_d (dest, val);
 }


More information about the gmp-commit mailing list