From: Jérémie Astor Date: Sun, 31 May 2020 18:46:01 +0000 (+0200) Subject: :bug: Fix emit_range X-Git-Tag: nightly~1498 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=f4135a11f1a0af3fe2e33da6ed88d704d2972655;p=gwion.git :bug: Fix emit_range --- diff --git a/src/emit/emit.c b/src/emit/emit.c index 330c636d..a08ce3cc 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -387,11 +387,11 @@ 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_OB(emit_exp_pop_next(emit, range->start)) + CHECK_BB(emit_exp_pop_next(emit, range->start)) else regpushi(emit, 0); if(range->end) - CHECK_OB(emit_exp_pop_next(emit, range->end)) + CHECK_BB(emit_exp_pop_next(emit, range->end)) else regpushi(emit, -1); return GW_OK;