summaryrefslogtreecommitdiff
path: root/tests/misc
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2010-11-10 16:28:01 +0100
committerTorbjorn Granlund <tege@gmplib.org>2010-11-10 16:28:01 +0100
commit8bd3c97538d43ab04b6ec662dfccb815561f234a (patch)
tree8e52373e3c8be0e51c9991968f3c9164dd4dfcee /tests/misc
parentb90bca4c9e1221ced136be6ddb09811ff75e660a (diff)
downloadgmp-8bd3c97538d43ab04b6ec662dfccb815561f234a.tar.gz
Make it possible to compile GMP with g++.
Diffstat (limited to 'tests/misc')
-rw-r--r--tests/misc/t-printf.c2
-rw-r--r--tests/misc/t-scanf.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/misc/t-printf.c b/tests/misc/t-printf.c
index d6026b2d0..ad8fc3081 100644
--- a/tests/misc/t-printf.c
+++ b/tests/misc/t-printf.c
@@ -100,7 +100,7 @@ check_plain (va_alist)
return;
fmtsize = strlen (fmt_orig) + 1;
- fmt = (*__gmp_allocate_func) (fmtsize);
+ fmt = (char *) (*__gmp_allocate_func) (fmtsize);
for (p = fmt_orig, q = fmt; *p != '\0'; p++)
{
diff --git a/tests/misc/t-scanf.c b/tests/misc/t-scanf.c
index 5a9eda1fc..b948a2df7 100644
--- a/tests/misc/t-scanf.c
+++ b/tests/misc/t-scanf.c
@@ -229,7 +229,7 @@ fun_sscanf (const char *input, const char *fmt, void *a1, void *a2)
int ret;
size = strlen (input) + 1;
- input_writable = (*__gmp_allocate_func) (size);
+ input_writable = (char *) (*__gmp_allocate_func) (size);
memcpy (input_writable, input, size);
if (a2 == NULL)