[GRASS-SVN] r55285 - grass-addons/grass7/raster/r.hants
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Mar 4 12:40:08 PST 2013
Author: mmetz
Date: 2013-03-04 12:40:07 -0800 (Mon, 04 Mar 2013)
New Revision: 55285
Modified:
grass-addons/grass7/raster/r.hants/main.c
Log:
r.hants bug fix
Modified: grass-addons/grass7/raster/r.hants/main.c
===================================================================
--- grass-addons/grass7/raster/r.hants/main.c 2013-03-04 20:32:00 UTC (rev 55284)
+++ grass-addons/grass7/raster/r.hants/main.c 2013-03-04 20:40:07 UTC (rev 55285)
@@ -436,8 +436,8 @@
for (j = 0; j < num_inputs; j++) {
- int idx = (int) ((i + 1) * (ts[j] - 1)) % bl;
-
+ int idx = (int) ((i + 1) * (ts[j])) % bl;
+
if (idx >= bl)
G_fatal_error("cs/sn index out of range: %d, %d", idx, bl);
More information about the grass-commit
mailing list