From: fennecdjay Date: Sun, 11 Dec 2022 18:06:51 +0000 (+0100) Subject: :bug: Fix range X-Git-Tag: nightly~207^2~42 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=5f24b493cedef947ba2466f285280f804aa9b89c;p=gwion.git :bug: Fix range --- 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; }