summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2019-09-06 19:46:43 +0200
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2019-09-06 19:46:43 +0200
commit4329b3abec5e3f5efc212d5de702b8a9aeaf06dc (patch)
tree31b655b69f38b32ef20e8be59b02bc2895c7c8d7 /tests
parentc8cfccc22cac40eb38788ce5aef85fbeba1a5085 (diff)
downloadgmp-4329b3abec5e3f5efc212d5de702b8a9aeaf06dc.tar.gz
tests/mpq/t-get_str.c (check_one): Print the right pointer.
Diffstat (limited to 'tests')
-rw-r--r--tests/mpq/t-get_str.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mpq/t-get_str.c b/tests/mpq/t-get_str.c
index d29e7663e..e58652188 100644
--- a/tests/mpq/t-get_str.c
+++ b/tests/mpq/t-get_str.c
@@ -64,8 +64,8 @@ check_one (mpq_srcptr q, int base, const char *want)
{
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)