[GRASS-SVN] r51470 -
grass/branches/releasebranch_6_4/raster/r.watershed/ram
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Apr 18 07:01:05 EDT 2012
Author: mmetz
Date: 2012-04-18 04:01:05 -0700 (Wed, 18 Apr 2012)
New Revision: 51470
Modified:
grass/branches/releasebranch_6_4/raster/r.watershed/ram/do_cum.c
Log:
avoid integer overflow
Modified: grass/branches/releasebranch_6_4/raster/r.watershed/ram/do_cum.c
===================================================================
--- grass/branches/releasebranch_6_4/raster/r.watershed/ram/do_cum.c 2012-04-18 10:51:04 UTC (rev 51469)
+++ grass/branches/releasebranch_6_4/raster/r.watershed/ram/do_cum.c 2012-04-18 11:01:05 UTC (rev 51470)
@@ -6,7 +6,8 @@
int do_cum(void)
{
SHORT r, c, dr, dc;
- CELL is_swale, value, valued, aspect;
+ CELL is_swale, aspect;
+ DCELL value, valued;
int killer, threshold, count;
SHORT asp_r[9] = { 0, -1, -1, -1, 0, 1, 1, 1, 0 };
SHORT asp_c[9] = { 0, 1, 0, -1, -1, -1, 0, 1, 1 };
More information about the grass-commit
mailing list