From 373659647b7ef2433547d5e463c5bb9de4c4404d Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Tue, 3 Aug 2021 17:09:34 +0200 Subject: [PATCH] :art: Fix static arrays --- src/emit/emit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emit/emit.c b/src/emit/emit.c index f8d95dee..13714235 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -813,7 +813,7 @@ ANN static m_bool decl_static(const Emitter emit, const Exp_Decl *decl, emit_instantiate_decl(emit, v->type, decl->td, var_decl->array, is_ref)); CHECK_BB(emit_dot_static_data(emit, v, 1)); emit_add_instr(emit, Assign); - // (void)emit_object_addref(emit, -SZ_INT, 0); + (void)emit_object_addref(emit, -SZ_INT, 0); regpop(emit, SZ_INT); emit->code = code; return GW_OK; -- 2.43.0