From f7f0931de5fd9f1df576645073a5663eeec40464 Mon Sep 17 00:00:00 2001 From: Amorilia <amorilia@users.sourceforge.net> Date: Mon, 4 Jan 2010 16:15:25 +0000 Subject: [PATCH] A few small fixes so code compiles with g++. --- src/libqhull.h | 2 +- src/mem.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libqhull.h b/src/libqhull.h index 43f0e95..f9a9093 100644 --- a/src/libqhull.h +++ b/src/libqhull.h @@ -751,7 +751,7 @@ struct qhT { realT last_newhigh; unsigned lastreport; /* for qh_buildtracing */ int mergereport; /* for qh_tracemerging */ - void *old_qhstat; /* for saving qh_qhstat in save_qhull() and UsingLibQhull. Free with qh_free() */ + qhstatT *old_qhstat; /* for saving qh_qhstat in save_qhull() and UsingLibQhull. Free with qh_free() */ setT *old_tempstack; /* for saving qhmem.tempstack in save_qhull */ int ridgeoutnum; /* number of ridges for 4OFF output (qh_printbegin,etc) */ }; diff --git a/src/mem.h b/src/mem.h index 4690034..8b92df9 100644 --- a/src/mem.h +++ b/src/mem.h @@ -114,7 +114,7 @@ struct qhmemT { /* global memory management variables */ void *curbuffer; /* current buffer, linked by offset 0 */ void *freemem; /* free memory in curbuffer */ int freesize; /* size of freemem in bytes */ - void *tempstack; /* stack of temporary memory, managed by users */ + setT *tempstack; /* stack of temporary memory, managed by users */ FILE *ferr; /* file for reporting errors, only user is qh_fprintf() */ int IStracing; /* =5 if tracing memory allocations */ int cntquick; /* count of quick allocations */ -- GitLab