From 8c998784f2c774a13ec33fb68481d634b851c0ca Mon Sep 17 00:00:00 2001 From: Amorilia <amorilia@users.sourceforge.net> Date: Fri, 25 Dec 2009 14:48:38 +0000 Subject: [PATCH] A few compile fixes for mingw. --- src/geom.c | 2 +- src/poly2.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/geom.c b/src/geom.c index af633ee..0428c71 100644 --- a/src/geom.c +++ b/src/geom.c @@ -348,7 +348,7 @@ facetT *qh_findbesthorizon (boolT ischeckmax, pointT* point, facetT *startfacet, else if (!coplanarset_size) break; else if (!--coplanarset_size) { - facet= SETfirst_(qh coplanarset); + facet= (facetT*) SETfirst_(qh coplanarset); SETtruncate_(qh coplanarset, 0); }else facet= (facetT*)qh_setdellast (qh coplanarset); diff --git a/src/poly2.c b/src/poly2.c index 79ce4af..7513752 100644 --- a/src/poly2.c +++ b/src/poly2.c @@ -2203,7 +2203,7 @@ vertexT *qh_nearvertex (facetT *facet, pointT *point, realT *bestdistp) { qh_errexit(qh_ERRqhull, facet, NULL); } vertices= qh_settemp (qh TEMPsize); - apex= SETfirst_(facet->vertices); + apex= (vertexT*)SETfirst_(facet->vertices); center= facet->center; FOREACHneighbor_(apex) { if (neighbor->center == center) { @@ -2893,7 +2893,7 @@ void qh_triangulate_facet (facetT *facetA, vertexT **first_vertex) { qh_willdelete (facetA, NULL); qh newfacet_list= qh facet_tail; facetA->visitid= qh visit_id; - apex= SETfirst_(facetA->vertices); + apex= (vertexT*)SETfirst_(facetA->vertices); qh_makenew_nonsimplicial (facetA, apex, &numnew); SETfirst_(facetA->neighbors)= NULL; FORALLnew_facets { @@ -3005,8 +3005,8 @@ void qh_triangulate_null (facetT *facetA) { facetT *neighbor, *otherfacet; trace3((qh ferr, "qh_triangulate_null: delete null facet f%d\n", facetA->id)); - neighbor= SETfirst_(facetA->neighbors); - otherfacet= SETsecond_(facetA->neighbors); + neighbor= (facetT*)SETfirst_(facetA->neighbors); + otherfacet= (facetT*)SETsecond_(facetA->neighbors); qh_triangulate_link (facetA, neighbor, facetA, otherfacet); qh_willdelete (facetA, NULL); } /* triangulate_null */ -- GitLab