summaryrefslogtreecommitdiff
path: root/parser/interpreter.go
diff options
context:
space:
mode:
Diffstat (limited to 'parser/interpreter.go')
-rw-r--r--parser/interpreter.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/parser/interpreter.go b/parser/interpreter.go
index e6ac95c..6f354d9 100644
--- a/parser/interpreter.go
+++ b/parser/interpreter.go
@@ -40,9 +40,9 @@ func (i *Interpreter) Eval(src string) (res reflect.Value, err error) {
i.Push(i.Data[dataOffset:]...)
i.PushCode(i.Code[codeOffset:]...)
if s, ok := i.symbols["main"]; ok {
- i.PushCode([]int64{0, vm.Calli, i.Data[s.index].Data.Int()})
+ i.PushCode(vm.Instruction{Op: vm.Calli, Arg: []int{int(i.Data[s.index].Data.Int())}})
}
- i.PushCode([]int64{0, vm.Exit})
+ i.PushCode(vm.Instruction{Op: vm.Exit})
i.SetIP(max(codeOffset, i.Entry))
if debug {
i.PrintData()