From 8bd3c97538d43ab04b6ec662dfccb815561f234a Mon Sep 17 00:00:00 2001 From: Torbjorn Granlund Date: Wed, 10 Nov 2010 16:28:01 +0100 Subject: Make it possible to compile GMP with g++. --- tal-reent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tal-reent.c') 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; -- cgit v1.2.1