diff --git a/src/rboxlib.c b/src/rboxlib.c index a9bd5e1d760e245343f5684a76fcca039c44c783..02fd60ba2f75a34123c538ce47ed630aca1eb7d6 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 */ }