From 555fd8b3ff5c121d9faff1000d664fc653c912bf Mon Sep 17 00:00:00 2001 From: mihaf <miha.fosnaric@gmail.com> Date: Wed, 02 Apr 2014 09:43:19 +0000 Subject: [PATCH] In cell.c changed comparison between vertices in a cell from idx to pointer (to avoid bug that two distinct vertices with same idx are not checked for proximity). --- src/triangle.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/triangle.c b/src/triangle.c index dc53487..311e138 100644 --- a/src/triangle.c +++ b/src/triangle.c @@ -150,6 +150,7 @@ // fprintf(stderr,"*** tria_number=%d\n",tria->neigh_no); tria->neigh=(ts_triangle **)realloc(tria->neigh,tria->neigh_no*sizeof(ts_triangle *)); if(tria->neigh == NULL){ + fprintf(stderr,"Ooops: tria->neigh_no=%d\n",tria->neigh_no); fatal("Reallocation of memory failed during removal of vertex neighbour in triangle_remove_neighbour",100); } /* we repeat the procedure for neighbour */ @@ -168,6 +169,7 @@ // fprintf(stderr,"*** ntria_number=%d\n",ntria->neigh_no); ntria->neigh=(ts_triangle **)realloc(ntria->neigh,ntria->neigh_no*sizeof(ts_triangle *)); if(ntria->neigh == NULL){ + fprintf(stderr,"Ooops: ntria->neigh_no=%d\n",ntria->neigh_no); fatal("Reallocation of memory failed during removal of vertex neighbour in triangle_remove_neighbour",100); } return TS_SUCCESS; -- Gitblit v1.9.3