From 06789981fad37debb0cd8d4c98507be8d057233e Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sat, 14 Jan 2023 14:46:19 +0100 Subject: [PATCH] :art: cosmetics --- src/emit/emit.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/emit/emit.c b/src/emit/emit.c index 4606abb7..35e47d6f 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -951,9 +951,10 @@ ANN static m_bool emit_exp_decl_static(const Emitter emit, const Exp_Decl *decl, CHECK_BB(decl_static(emit, decl, var_decl, 0)); CHECK_BB(emit_dot_static_data(emit, v, !struct_ctor(v) ? emit_addr : 1)); if (tflag(v->type, tflag_struct)) CHECK_BB(struct_finish(emit, decl)); - if (isa(v->type, emit->gwion->type[et_object]) > 0 && !is_ref) - if(safe_tflag(emit->env->class_def, tflag_struct) && GET_FLAG(emit->env->class_def, global)) - emit_object_addref(emit, 0, emit_addr); + if (isa(v->type, emit->gwion->type[et_object]) > 0 && !is_ref) { + if(safe_tflag(emit->env->class_def, tflag_struct) && GET_FLAG(emit->env->class_def, global)) + emit_object_addref(emit, 0, emit_addr); + } return GW_OK; } -- 2.43.0