[GRASS-SVN] r58118 - grass/trunk/raster/r.random

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Oct 28 18:33:59 PDT 2013


Author: glynn
Date: 2013-10-28 18:33:59 -0700 (Mon, 28 Oct 2013)
New Revision: 58118

Modified:
   grass/trunk/raster/r.random/count.c
Log:
Promote cell count to long


Modified: grass/trunk/raster/r.random/count.c
===================================================================
--- grass/trunk/raster/r.random/count.c	2013-10-28 14:29:54 UTC (rev 58117)
+++ grass/trunk/raster/r.random/count.c	2013-10-29 01:33:59 UTC (rev 58118)
@@ -55,7 +55,7 @@
     nrows = Rast_window_rows();
     ncols = Rast_window_cols();
 
-    theState->nCells = nrows * ncols;
+    theState->nCells = (long) nrows * ncols;
     theState->nNulls = 0;
     set_min(NULL, 0, &theState->min);
     set_max(NULL, 0, &theState->max);



More information about the grass-commit mailing list