commit 49532206939646799ca3430ff1d13484c62b2d2b
parent 4e25b3ff44f7c7f9d356aae162482eb5cc8f1a14
Author: Ember Sawady <ecs@d2evs.net>
Date: Tue, 8 Nov 2022 16:13:09 +0000
Fix global char enums
Fixes: https://todo.sr.ht/~sircmpwn/hare/768
Signed-off-by: Ember Sawady <ecs@d2evs.net>
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/gen.c b/src/gen.c
@@ -3590,6 +3590,7 @@ gen_data_item(struct gen_context *ctx, struct expression *expr,
switch (type->alias.type->storage) {
case STORAGE_I8:
case STORAGE_U8:
+ case STORAGE_CHAR:
item->type = QD_VALUE;
item->value = constw((uint8_t)constant->uval);
item->value.type = &qbe_byte;