From: Brendan Hansen Date: Sat, 15 Aug 2020 15:59:21 +0000 (-0500) Subject: small bugfix for setting global structs X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=46f944e431700392bf6d877bc116e6ff9ed255cc;p=onyx.git small bugfix for setting global structs --- diff --git a/onyx b/onyx index 2a1eabd4..f1d47654 100755 Binary files a/onyx and b/onyx differ diff --git a/src/onyxwasm.c b/src/onyxwasm.c index edffc14a..c6f7529d 100644 --- a/src/onyxwasm.c +++ b/src/onyxwasm.c @@ -1117,6 +1117,7 @@ COMPILE_FUNC(struct_store, AstTyped* lval) { case Ast_Kind_Dereference: compile_expression(mod, &code, ((AstDereference *) lval)->expr); break; case Ast_Kind_Array_Access: compile_array_access_location(mod, &code, (AstArrayAccess *) lval, &offset); break; case Ast_Kind_Field_Access: compile_field_access_location(mod, &code, (AstFieldAccess *) lval, &offset); break; + case Ast_Kind_Memres: compile_memory_reservation_location(mod, &code, (AstMemRes *) lval); break; default: assert(0); }