summaryrefslogtreecommitdiff
path: root/tal-reent.c
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 /tal-reent.c
parentb90bca4c9e1221ced136be6ddb09811ff75e660a (diff)
downloadgmp-8bd3c97538d43ab04b6ec662dfccb815561f234a.tar.gz
Make it possible to compile GMP with g++.
Diffstat (limited to 'tal-reent.c')
-rw-r--r--tal-reent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tal-reent.c b/tal-reent.c
index 32db9342c..87da7f3c8 100644
--- a/tal-reent.c
+++ b/tal-reent.c
@@ -50,7 +50,7 @@ __gmp_tmp_reentrant_alloc (struct tmp_reentrant_t **markp, size_t size)
#define P ((struct tmp_reentrant_t *) p)
total_size = size + HSIZ;
- p = (*__gmp_allocate_func) (total_size);
+ p = (char *) (*__gmp_allocate_func) (total_size);
P->size = total_size;
P->next = *markp;
*markp = P;