From 670e633d00d849f9bdad39a40e104e573752cfdf Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Thu, 12 May 2022 20:56:12 +0200 Subject: [PATCH] :bug: Fix builtin static item access --- src/lib/object_op.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/object_op.c b/src/lib/object_op.c index 12ff7c61..984bf45b 100644 --- a/src/lib/object_op.c +++ b/src/lib/object_op.c @@ -87,8 +87,7 @@ ANN static void emit_dot_static_data(const Emitter emit, const Value v, ANN static void emit_dot_static_import_data(const Emitter emit, const Value v, const bool emit_addr) { - // if(v->d.ptr && vflag(v, vflag_builtin) && GET_FLAG(v, const)) { - if (vflag(v, vflag_builtin) && GET_FLAG(v, const)) { + if (vflag(v, vflag_builtin) /*&& GET_FLAG(v, const)*/) { const m_uint size = v->type->size; const Instr instr = emit_regpushimm(emit, size, emit_addr); instr->m_val = (m_uint)v->d.ptr; -- 2.43.0