From 46d9d036ac0dfbfb486f70668157464b20ff25f8 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Fri, 4 Oct 2019 14:21:42 +0200 Subject: [PATCH] :art: Improve prim_gack --- src/emit/emit.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/emit/emit.c b/src/emit/emit.c index 8a07b594..7d14cf39 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -564,7 +564,10 @@ ANN static m_bool prim_gack(const Emitter emit, const Exp_Primary* primary) { do { next = e->next; e->next = NULL; - CHECK_BB(emit_exp(emit, e, 0)) + if(emit_exp(emit, e, 0) < 0) { + e->next = next; + return GW_ERROR; + } const Instr instr = emit_add_instr(emit, Gack); instr->m_val = (m_uint)e->type; instr->m_val2 = emit_code_offset(emit); -- 2.43.0