harec

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

commit 6f3f80867f9957f37276170674758884163fd370
parent d6104b30f8dd959bde6187ba08ad7a362b9b495b
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon, 26 Jul 2021 20:31:20 +0200

gen: de-alias constant types

Signed-off-by: Drew DeVault <sir@cmpwn.com>

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

diff --git a/src/gen.c b/src/gen.c @@ -17,7 +17,7 @@ gen_expr_const(struct gen_context *ctx, const struct expression *expr) }; // Special cases - switch (expr->result->storage) { + switch (type_dealias(expr->result)->storage) { case STORAGE_BOOL: val.wval = expr->constant.bval ? 1 : 0; return val;