diff --git a/js-assembler/runtime-src/runtime.js b/js-assembler/runtime-src/runtime.js index b43d467..3e6d7f0 100644 --- a/js-assembler/runtime-src/runtime.js +++ b/js-assembler/runtime-src/runtime.js @@ -636,7 +636,7 @@ observedDelay) / DESIRED_DELAY_BETWEEN_BOUNCES)); MACHINE.params.maxNumBouncesBeforeYield = - Math.max(MACHINE.params.maxNumBouncesBeforeYield + delta, + Math.max(Math.floor(MACHINE.params.maxNumBouncesBeforeYield + delta), 1); };