[Gmp-commit] /var/hg/gmp: tests/mpq/t-get_str.c (check_one): Print the right ...

mercurial at gmplib.org mercurial at gmplib.org
Fri Sep 6 17:46:53 UTC 2019


details:   /var/hg/gmp/rev/6137ad9f35b7
changeset: 17872:6137ad9f35b7
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Fri Sep 06 19:46:43 2019 +0200
description:
tests/mpq/t-get_str.c (check_one): Print the right pointer.

diffstat:

 tests/mpq/t-get_str.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r 46301888618d -r 6137ad9f35b7 tests/mpq/t-get_str.c
--- a/tests/mpq/t-get_str.c	Thu Sep 05 23:01:32 2019 +0200
+++ b/tests/mpq/t-get_str.c	Fri Sep 06 19:46:43 2019 +0200
@@ -64,8 +64,8 @@
     {
       printf ("mpq_get_str wrong return value (passing non-NULL)\n");
       printf ("  base %d\n", base);
-      printf ("  got  %p\n", ret);
-      printf ("  want %p\n", want);
+      printf ("  got  %p\n", (void *) ret);
+      printf ("  want %p\n", (void *) str);
       abort ();
     }
   if (strcmp (str, want) != 0)


More information about the gmp-commit mailing list