[GRASS-SVN] r59505 - grass/trunk/raster/r.terraflow
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Mar 28 17:06:55 PDT 2014
Author: hamish
Date: 2014-03-28 17:06:54 -0700 (Fri, 28 Mar 2014)
New Revision: 59505
Modified:
grass/trunk/raster/r.terraflow/main.cpp
Log:
long ints for number of elements (#1421)
Modified: grass/trunk/raster/r.terraflow/main.cpp
===================================================================
--- grass/trunk/raster/r.terraflow/main.cpp 2014-03-28 23:46:00 UTC (rev 59504)
+++ grass/trunk/raster/r.terraflow/main.cpp 2014-03-29 00:06:54 UTC (rev 59505)
@@ -407,12 +407,12 @@
G_message( "total elements=%ld, nodata elements=%ld",
(long)nrows*ncols, nodata_count);
G_message( "largest temporary files: ");
- G_message( "\t\t FILL: %s [%d elements, %dB each]",
+ G_message( "\t\t FILL: %s [%ld elements, %dB each]",
formatNumber(buf, fillmaxsize),
- nrows * ncols, sizeof(waterWindowType));
+ (long)nrows * ncols, sizeof(waterWindowType));
G_message( "\t\t FLOW: %s [%ld elements, %dB each]",
formatNumber(buf, flowmaxsize),
- (long)(nrows * ncols - nodata_count), sizeof(sweepItem));
+ (long)nrows * ncols - nodata_count, sizeof(sweepItem));
G_message( "Will need at least %s space available in %s",
formatNumber(buf, maxneed), /* need 2*N to sort */
getenv(STREAM_TMPDIR));
More information about the grass-commit
mailing list