[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grass-commit
Subject:    [GRASS-SVN] r58118 - grass/trunk/raster/r.random
From:       svn_grass () osgeo ! org
Date:       2013-10-29 1:33:59
Message-ID: 20131029013359.70B253905FA () trac ! osgeo ! org
[Download RAW message or body]

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);

_______________________________________________
grass-commit mailing list
grass-commit@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-commit
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic