~sebsite/harec-plus-plus

4b2f76107d330dbf474eff9682105c10cbb84c55 — Sebastian 8 months ago ea2d456 master
forgot to commit this part :(
1 files changed, 2 insertions(+), 5 deletions(-)

M src/check.c
M src/check.c => src/check.c +2 -5
@@ 3312,12 3312,9 @@ check_expr_call(struct context *ctx,
		if (exp_idx == (size_t)-1 && aarg->variadic && (aarg->next || !fntype
				|| fntype->func.variadism != VARIADISM_HARE)) {
			exp_len = expr_pack_expand(ctx, NULL, aarg->value, -1);
			if (exp_len == (size_t)-1) {
				error(ctx, aarg->value->loc, expr,
					"No parameter packs to expand");
				return;
			if (exp_len != (size_t)-1) {
				exp_idx = 0;
			}
			exp_idx = 0;
		}
		if (exp_idx != (size_t)-1) {
			expr_pack_expand(ctx, exp_scope, aarg->value, exp_idx);