]> Nishi Git Mirror - gwion.git/commitdiff
:bug: Fix range
authorfennecdjay <fennecdjay@gmail.com>
Sun, 11 Dec 2022 18:06:51 +0000 (19:06 +0100)
committerfennecdjay <fennecdjay@gmail.com>
Sun, 11 Dec 2022 18:06:51 +0000 (19:06 +0100)
src/emit/emit.c

index 2d1f804a12b8ab00b12169d42720ee70255423f3..c7d0df0fce53cf9a4bacd4cc6c07477d8daae9a8 100644 (file)
@@ -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;
 }