fix off-by-one error in execution code.
This commit is contained in:
parent
0d99d58812
commit
2778216ff6
|
@ -11,7 +11,7 @@ export function execute (program, arg = id) {
|
|||
|
||||
function call_fn (fn, env = []) {
|
||||
if (typeof fn === "number") {
|
||||
while (fn > 0) {
|
||||
while (fn > 1) {
|
||||
fn--;
|
||||
env = env[1];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue