harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 41e0e8eff4a2dd513d091757966f77c8ee7c7215
parent 6962cf55dee6c2d7bc094319bced99709bac0d27
Author: Armin Weigl <tb46305@gmail.com>
Date:   Sat, 27 Mar 2021 17:32:48 +0100

gen_expr_measure: dealias array

Fixes: hare#331

Diffstat:
Msrc/gen.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gen.c b/src/gen.c @@ -2230,7 +2230,7 @@ gen_expr_measure(struct gen_context *ctx, gen_temp(ctx, &temp, qtype_for_type(ctx, expr->result, false), "len.%d"); - constl(&temp, expr->measure.value->result->array.length); + constl(&temp, type_dealias(expr->measure.value->result)->array.length); gen_store(ctx, out, &temp); break; case STORAGE_SLICE: