From 3065597ac54173cebdd577c25c8e4b04ca41c650 Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@fe.uni-lj.si>
Date: Tue, 10 Jul 2012 11:35:09 +0000
Subject: [PATCH] pinpointing the error

---
 src/vertex.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/vertex.c b/src/vertex.c
index 466c064..694ee84 100644
--- a/src/vertex.c
+++ b/src/vertex.c
@@ -72,7 +72,7 @@
 ts_bool vtx_remove_neighbour(ts_vertex *vtx, ts_vertex *nvtx){
 /* find a neighbour */
 /* remove it from the list while shifting remaining neighbours up */
-    ts_uint i,j=0;
+    ts_int i,j=-1;
     for(i=0;i<vtx->neigh_no;i++){
         if(vtx->neigh[i]!=nvtx){
             vtx->neigh[j]=vtx->neigh[i];
@@ -87,7 +87,7 @@
     vtx->neigh=(ts_vertex **)realloc(vtx->neigh,vtx->neigh_no*sizeof(ts_vertex *));
     if(vtx->neigh == NULL && vtx->neigh_no!=0)
         fatal("Reallocation of memory failed during removal of vertex neighbour in vtx_remove_neighbour",100);
-
+fprintf(stderr,"first alloc");
 /* repeat for the neighbour */
 /* find a neighbour */
 /* remove it from the list while shifting remaining neighbours up */

--
Gitblit v1.9.3