[GRASS-SVN] r51468 - grass/trunk/raster/r.watershed/ram

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Apr 18 06:34:40 EDT 2012


Author: mmetz
Date: 2012-04-18 03:34:40 -0700 (Wed, 18 Apr 2012)
New Revision: 51468

Modified:
   grass/trunk/raster/r.watershed/ram/do_cum.c
Log:
avoid integer overflow

Modified: grass/trunk/raster/r.watershed/ram/do_cum.c
===================================================================
--- grass/trunk/raster/r.watershed/ram/do_cum.c	2012-04-17 21:41:07 UTC (rev 51467)
+++ grass/trunk/raster/r.watershed/ram/do_cum.c	2012-04-18 10:34:40 UTC (rev 51468)
@@ -7,7 +7,8 @@
 int do_cum(void)
 {
     int r, c, dr, dc;
-    CELL is_swale, value, valued, aspect;
+    CELL is_swale, aspect;
+    DCELL value, valued;
     int killer, threshold, count;
     int asp_r[9] = { 0, -1, -1, -1, 0, 1, 1, 1, 0 };
     int asp_c[9] = { 0, 1, 0, -1, -1, -1, 0, 1, 1 };



More information about the grass-commit mailing list