From 771ab0882ea685e99565ebff25326931bcbcf7ad Mon Sep 17 00:00:00 2001 From: Amorilia <amorilia@users.sourceforge.net> Date: Mon, 4 Jan 2010 16:24:30 +0000 Subject: [PATCH] Another fix for g++. --- src/rboxlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rboxlib.c b/src/rboxlib.c index a9bd5e1..02fd60b 100644 --- a/src/rboxlib.c +++ b/src/rboxlib.c @@ -396,7 +396,7 @@ int qh_rboxpoints(FILE* fout, FILE* ferr, char* rbox_command) { /* ============= simplex distribution =============== */ if (issimplex+issimplex2) { - if (!(simplex= qh_malloc( dim * (dim+1) * sizeof(double)))) { + if (!(simplex= (double*)qh_malloc( dim * (dim+1) * sizeof(double)))) { qh_fprintf_rbox(rbox.ferr, 6196, "rbox error: insufficient memory for simplex\n"); qh_errexit_rbox(qh_ERRmem); /* qh_ERRmem */ } -- GitLab