[GRASS-CVS] markus: grass6/vector/v.what.rast main.c, 1.28,
1.28.2.1
grass at intevation.de
grass at intevation.de
Sun Nov 18 14:48:52 EST 2007
Author: markus
Update of /grassrepository/grass6/vector/v.what.rast
In directory doto:/tmp/cvs-serv22897
Modified Files:
Tag: releasebranch_6_3
main.c
Log Message:
Fix off-by-one error in duplicate removal code (merge from HEAD)
Index: main.c
===================================================================
RCS file: /grassrepository/grass6/vector/v.what.rast/main.c,v
retrieving revision 1.28
retrieving revision 1.28.2.1
diff -u -d -r1.28 -r1.28.2.1
--- main.c 22 Oct 2007 15:23:41 -0000 1.28
+++ main.c 18 Nov 2007 19:48:50 -0000 1.28.2.1
@@ -219,7 +219,7 @@
G_debug(1, "Points are sorted, starting duplicate removal loop");
- for (i = j = 0; j < point_cnt; j++)
+ for (i = 0, j = 1; j < point_cnt; j++)
if (cache[i].cat != cache[j].cat)
cache[++i] = cache[j];
else
More information about the grass-commit
mailing list