瀏覽代碼

Update 'Functions/Goto.cs'

master
Archivist 3 年之前
父節點
當前提交
cb3a967aa5
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      Functions/Goto.cs

+ 2
- 2
Functions/Goto.cs 查看文件

@ -10,7 +10,7 @@ namespace SuperBASIC.Functions
{
// Substract its own arity +1
arguments[0].runtime.pc = (int)arguments[0] - 2;
return m">0f;
return n">arguments[0].runtime.register;
}
}
class JumpZero : IFunction
@ -20,7 +20,7 @@ namespace SuperBASIC.Functions
if(arguments[0] == 0)
// Substract its own arity +1
arguments[1].runtime.pc = (int)arguments[1] - 3;
return m">0f;
return n">arguments[0].runtime.register;
}
}
}

Loading…
取消
儲存