[GRASS-SVN] r62039 - grass/trunk/raster/r.cost
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Sep 20 05:06:55 PDT 2014
Author: mmetz
Date: 2014-09-20 05:06:55 -0700 (Sat, 20 Sep 2014)
New Revision: 62039
Modified:
grass/trunk/raster/r.cost/cost.h
grass/trunk/raster/r.cost/heap.c
Log:
r.cost: fix heap
Modified: grass/trunk/raster/r.cost/cost.h
===================================================================
--- grass/trunk/raster/r.cost/cost.h 2014-09-20 03:52:03 UTC (rev 62038)
+++ grass/trunk/raster/r.cost/cost.h 2014-09-20 12:06:55 UTC (rev 62039)
@@ -37,7 +37,7 @@
struct cost
{
double min_cost;
- unsigned int age;
+ long age;
int row;
int col;
};
Modified: grass/trunk/raster/r.cost/heap.c
===================================================================
--- grass/trunk/raster/r.cost/heap.c 2014-09-20 03:52:03 UTC (rev 62038)
+++ grass/trunk/raster/r.cost/heap.c 2014-09-20 12:06:55 UTC (rev 62039)
@@ -39,8 +39,8 @@
*/
-#include <grass/gis.h>
#include <stdlib.h>
+#include <grass/gis.h>
#include <grass/glocale.h>
#include "cost.h"
@@ -92,11 +92,7 @@
long sift_up(long start, struct cost * child_pnt)
{
register long parent, child;
- int r, c;
- r = child_pnt->row;
- c = child_pnt->col;
-
child = start;
while (child > 1) {
More information about the grass-commit
mailing list