From: Tobias Grosser Date: Sat, 21 Sep 2013 12:15:36 +0000 (+0200) Subject: isl_union_*_mul_isl_int: pass address of isl_int to callback X-Git-Tag: isl-0.12.2~6 X-Git-Url: https://repo.or.cz/w/isl.git/commitdiff_plain/b9c7b8c8c98a6722262f076b27f833a25b83f55d 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 --- 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;