浏览代码

use address the pointer is pointing to not address of the pointer itself

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@39506 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 15 年之前
父节点
当前提交
75bf2b781a
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      lib/raster/color_rule.c

+ 2 - 3
lib/raster/color_rule.c

@@ -197,9 +197,8 @@ int Rast_add_modular_c_color_rule(const CELL * val1, int r1, int g1, int b1,
 	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;