[GRASS-SVN] r55298 - grass/trunk/raster/r.resamp.rst
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Mar 10 08:25:12 PDT 2013
Author: mmetz
Date: 2013-03-10 08:25:12 -0700 (Sun, 10 Mar 2013)
New Revision: 55298
Modified:
grass/trunk/raster/r.resamp.rst/main.c
Log:
r.resamp.rst: avoid integer overflow
Modified: grass/trunk/raster/r.resamp.rst/main.c
===================================================================
--- grass/trunk/raster/r.resamp.rst/main.c 2013-03-10 07:55:54 UTC (rev 55297)
+++ grass/trunk/raster/r.resamp.rst/main.c 2013-03-10 15:25:12 UTC (rev 55298)
@@ -96,7 +96,7 @@
static char *mcurv;
static char *maskmap;
-static int sdisk, disk;
+static off_t sdisk, disk;
static char *Tmp_file_z;
static char *Tmp_file_dx;
@@ -417,7 +417,7 @@
G_message(_("%.2f KB of disk space for temp files."), sdisk / 1024.);
}
else
- G_message(_("%d bytes of disk space for temp files."), sdisk);
+ G_message(_("%d bytes of disk space for temp files."), (int)sdisk);
fstar2 = fi * fi / 4.;
More information about the grass-commit
mailing list