]> Nishi Git Mirror - gwion.git/commitdiff
:bug: Fix emit_range
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Sun, 31 May 2020 18:46:01 +0000 (20:46 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Sun, 31 May 2020 18:46:01 +0000 (20:46 +0200)
src/emit/emit.c

index 330c636dc9747364ac5d3b7f8241c7f566236d55..a08ce3cc167fba058831cad0a86c494a4047d9e2 100644 (file)
@@ -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;