[GRASS-SVN] r39506 - grass/trunk/lib/raster

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Oct 13 06:59:33 EDT 2009


Author: mmetz
Date: 2009-10-13 06:59:33 -0400 (Tue, 13 Oct 2009)
New Revision: 39506

Modified:
   grass/trunk/lib/raster/color_rule.c
Log:
use address the pointer is pointing to not address of the pointer itself

Modified: grass/trunk/lib/raster/color_rule.c
===================================================================
--- grass/trunk/lib/raster/color_rule.c	2009-10-13 10:56:50 UTC (rev 39505)
+++ grass/trunk/lib/raster/color_rule.c	2009-10-13 10:59:33 UTC (rev 39506)
@@ -197,9 +197,8 @@
 	return -1;		/* can;t use this on 3.0 colors */
     min = colors->cmin;
     max = colors->cmax;
-    add_color_rule((void *)&val1, r1, g1, b1, (void *)&val2, r2, g2, b2,
-		   &colors->modular, 0, &colors->cmin, &colors->cmax,
-		   CELL_TYPE);
+    add_color_rule(val1, r1, g1, b1, val2, r2, g2, b2, &colors->modular, 0,
+		   &colors->cmin, &colors->cmax, CELL_TYPE);
     colors->cmin = min;		/* don't reset these */
     colors->cmax = max;
 



More information about the grass-commit mailing list