Przeglądaj źródła

Update 'Functions/Goto.cs'

master
Archivist 2 lat temu
rodzic
commit
cb3a967aa5
1 zmienionych plików z 2 dodań i 2 usunięć
  1. +2
    -2
      Functions/Goto.cs

+ 2
- 2
Functions/Goto.cs Wyświetl plik

@ -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;
}
}
}

Ładowanie…
Anuluj
Zapisz