From b9c7b8c8c98a6722262f076b27f833a25b83f55d Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Sat, 21 Sep 2013 14:15:36 +0200 Subject: [PATCH] isl_union_*_mul_isl_int: pass address of isl_int to callback isl_hash_table_foreach expects a user pointer and our callback function also dereferences the user pointer. Consequently, we pass in a pointer to the integer value, not its value. Note that this commit does not have any effect in practice because of the way isl_int (i.e., mpz_t) is defined. Signed-off-by: Tobias Grosser Signed-off-by: Sven Verdoolaege --- isl_union_templ.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/isl_union_templ.c b/isl_union_templ.c index 65ab08fc..06df2464 100644 --- a/isl_union_templ.c +++ b/isl_union_templ.c @@ -796,7 +796,8 @@ __isl_give UNION *FN(UNION,mul_isl_int)(__isl_take UNION *u, isl_int v) if (isl_int_is_neg(v)) u->type = isl_fold_type_negate(u->type); #endif - if (isl_hash_table_foreach(u->dim->ctx, &u->table, &mul_isl_int, v) < 0) + if (isl_hash_table_foreach(u->dim->ctx, &u->table, + &mul_isl_int, &v) < 0) goto error; return u; -- 2.11.4.GIT