[space-maps/recursive] fix bug in flush_ops()

Decrements weren't being passed down properly.
This commit is contained in:
Joe Thornber 2020-05-26 09:24:15 +01:00
parent 50f8e792d3
commit 371d1bbd6e

View File

@ -216,7 +216,10 @@ namespace {
switch (op.op_) {
case INC:
sm_->inc(b, op.rc_);
if (op.rc_ > 0)
sm_->inc(b, op.rc_);
else if (op.rc_ < 0)
sm_->dec(b, -op.rc_);
break;
case SET: