浏览代码

long ints for number of elements (https://trac.osgeo.org/grass/ticket/1421)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@59505 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 11 年之前
父节点
当前提交
d6e3242b84
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      raster/r.terraflow/main.cpp

+ 3 - 3
raster/r.terraflow/main.cpp

@@ -407,12 +407,12 @@ printMaxSortSize(long nodata_count) {
   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));