From 5f24b493cedef947ba2466f285280f804aa9b89c Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sun, 11 Dec 2022 19:06:51 +0100 Subject: [PATCH] :bug: Fix range --- src/emit/emit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emit/emit.c b/src/emit/emit.c index 2d1f804a..c7d0df0f 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -615,10 +615,10 @@ ANN static inline m_bool emit_exp_pop_next(const Emitter emit, Exp e); ANN static m_bool emit_range(const Emitter emit, Range *range) { if (range->start) - CHECK_BB(emit_exp(emit, range->start)); + CHECK_BB(emit_exp_pop_next(emit, range->start)); else emit_pushimm(emit, 0); if (range->end) - CHECK_BB(emit_exp(emit, range->end)); + CHECK_BB(emit_exp_pop_next(emit, range->end)); else emit_pushimm(emit, -1); return GW_OK; } -- 2.43.0