go fix my shit
All checks were successful
/ test (push) Successful in 51s

This commit is contained in:
Neemek 2026-09-23 09:13:28 +02:00
parent 0db420aae4
commit 7245af0438
Signed by: neemek
GPG key ID: 433EA4A50D4F55A3
5 changed files with 35 additions and 30 deletions

View file

@ -9,6 +9,7 @@ import (
"math"
"math/big"
"os"
"slices"
"strconv"
"strings"
)
@ -926,8 +927,8 @@ func (vm *VM) Next() bool {
vm.scope = f.Scope
vm.descend()
for i := len(f.Params) - 1; i >= 0; i-- {
vm.addVar(f.Params[i].Name, vm.Stack.Pop())
for _, v := range slices.Backward(f.Params) {
vm.addVar(v.Name, vm.Stack.Pop())
}
if f.Parent != nil {