[GRASS-SVN] r37722 - grass/branches/develbranch_6/raster/r.stats
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jun 3 18:15:11 EDT 2009
Author: hamish
Date: 2009-06-03 18:15:11 -0400 (Wed, 03 Jun 2009)
New Revision: 37722
Modified:
grass/branches/develbranch_6/raster/r.stats/cell_stats.c
grass/branches/develbranch_6/raster/r.stats/stats.c
Log:
minor tweaks (merge from relbr64)
Modified: grass/branches/develbranch_6/raster/r.stats/cell_stats.c
===================================================================
--- grass/branches/develbranch_6/raster/r.stats/cell_stats.c 2009-06-03 17:24:30 UTC (rev 37721)
+++ grass/branches/develbranch_6/raster/r.stats/cell_stats.c 2009-06-03 22:15:11 UTC (rev 37722)
@@ -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/branches/develbranch_6/raster/r.stats/stats.c
===================================================================
--- grass/branches/develbranch_6/raster/r.stats/stats.c 2009-06-03 17:24:30 UTC (rev 37721)
+++ grass/branches/develbranch_6/raster/r.stats/stats.c 2009-06-03 22:15:11 UTC (rev 37722)
@@ -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