harec

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

commit bb8e071af8af1511a03769d944ffb2e4a91db3d0
parent 622705fe7be0403a0e2ae0d80221187eee355adb
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon,  1 Feb 2021 16:08:05 -0500

gen: fix storage of long in globals

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

diff --git a/src/gen.c b/src/gen.c @@ -2199,7 +2199,7 @@ gen_data_item(struct gen_context *ctx, struct expression *expr, case TYPE_STORAGE_I64: case TYPE_STORAGE_SIZE: item->type = QD_VALUE; - constw(&item->value, (uint32_t)constant->uval); + constl(&item->value, (uint32_t)constant->uval); break; case TYPE_STORAGE_F32: case TYPE_STORAGE_F64: