[Gmp-commit] /var/hg/gmp: 2 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Sat Nov 15 12:22:38 UTC 2014


details:   /var/hg/gmp/rev/3b21cdfe66c6
changeset: 16516:3b21cdfe66c6
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Sat Nov 15 13:20:18 2014 +0100
description:
gen-trialdivtab.c: silence a g++ warning by adding a const

details:   /var/hg/gmp/rev/d79be2404f02
changeset: 16517:d79be2404f02
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Sat Nov 15 13:22:21 2014 +0100
description:
mpq: Silence a tcc warning using mpq_srcptr and not const mpq_t

diffstat:

 gen-trialdivtab.c |  2 +-
 mpq/cmp.c         |  2 +-
 mpq/cmp_ui.c      |  2 +-
 mpq/get_d.c       |  2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diffs (48 lines):

diff -r 7a12301c76e7 -r d79be2404f02 gen-trialdivtab.c
--- a/gen-trialdivtab.c	Fri Nov 14 11:54:35 2014 +0100
+++ b/gen-trialdivtab.c	Sat Nov 15 13:22:21 2014 +0100
@@ -64,7 +64,7 @@
   mpz_t pre[7];
   int i;
   int start_p, end_p, interval_start, interval_end, omitted_p;
-  char *endtok;
+  const char *endtok;
   int stop;
   int np, start_idx;
 
diff -r 7a12301c76e7 -r d79be2404f02 mpq/cmp.c
--- a/mpq/cmp.c	Fri Nov 14 11:54:35 2014 +0100
+++ b/mpq/cmp.c	Sat Nov 15 13:22:21 2014 +0100
@@ -34,7 +34,7 @@
 #include "longlong.h"
 
 int
-mpq_cmp (const mpq_t op1, const mpq_t op2)
+mpq_cmp (mpq_srcptr op1, mpq_srcptr op2)
 {
   mp_size_t num1_size = SIZ(NUM(op1));
   mp_size_t den1_size = SIZ(DEN(op1));
diff -r 7a12301c76e7 -r d79be2404f02 mpq/cmp_ui.c
--- a/mpq/cmp_ui.c	Fri Nov 14 11:54:35 2014 +0100
+++ b/mpq/cmp_ui.c	Sat Nov 15 13:22:21 2014 +0100
@@ -34,7 +34,7 @@
 #include "gmp-impl.h"
 
 int
-_mpq_cmp_ui (const mpq_t op1, unsigned long int num2, unsigned long int den2)
+_mpq_cmp_ui (mpq_srcptr op1, unsigned long int num2, unsigned long int den2)
 {
   mp_size_t num1_size = SIZ(NUM(op1));
   mp_size_t den1_size = SIZ(DEN(op1));
diff -r 7a12301c76e7 -r d79be2404f02 mpq/get_d.c
--- a/mpq/get_d.c	Fri Nov 14 11:54:35 2014 +0100
+++ b/mpq/get_d.c	Sat Nov 15 13:22:21 2014 +0100
@@ -101,7 +101,7 @@
    like to have helping everywhere that uses a quotient-only division. */
 
 double
-mpq_get_d (const mpq_t src)
+mpq_get_d (mpq_srcptr src)
 {
   double res;
   mp_srcptr np, dp;


More information about the gmp-commit mailing list