[GRASS-SVN] r37723 - grass/trunk/raster/r.stats

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jun 3 18:18:25 EDT 2009


Author: hamish
Date: 2009-06-03 18:18:25 -0400 (Wed, 03 Jun 2009)
New Revision: 37723

Modified:
   grass/trunk/raster/r.stats/cell_stats.c
   grass/trunk/raster/r.stats/stats.c
Log:
minor tweaks (merge from relbr64)

Modified: grass/trunk/raster/r.stats/cell_stats.c
===================================================================
--- grass/trunk/raster/r.stats/cell_stats.c	2009-06-03 22:15:11 UTC (rev 37722)
+++ grass/trunk/raster/r.stats/cell_stats.c	2009-06-03 22:18:25 UTC (rev 37723)
@@ -48,7 +48,7 @@
 
 	for (i = 0; i < nfiles; i++) {
 	    if (G_get_c_raster_row(fd[i], cell[i], row) < 0)
-		G_fatal_error(_("Unable to read raster map <map %d of %d> row %d"),
+		G_fatal_error(_("Unable to read raster <map %d of %d> row %d"),
 				i+1, nfiles, row);
 
 	    /* include max FP value in nsteps'th bin */

Modified: grass/trunk/raster/r.stats/stats.c
===================================================================
--- grass/trunk/raster/r.stats/stats.c	2009-06-03 22:15:11 UTC (rev 37722)
+++ grass/trunk/raster/r.stats/stats.c	2009-06-03 22:18:25 UTC (rev 37723)
@@ -99,8 +99,8 @@
 {
     while (ncols-- > 0) {
 	if (cell[ncols] > nsteps)
-	    cell[ncols] = nsteps;
-	    /* { G_debug(5, ". resetting %d to %d\n", cell[ncols], nsteps); } */
+	    cell[ncols] = (CELL)nsteps;
+	    /* { G_debug(5, ". resetting %d to %d", cell[ncols], nsteps); } */
     }
     return;
 }



More information about the grass-commit mailing list