Reversed parameter order
This commit is contained in:
parent
a87775a1db
commit
c7d90a2d11
@ -10,8 +10,8 @@ func (f *Function) CompileFunctionCall(expr *expression.Expression) error {
|
|||||||
funcName := expr.Children[0].Token.Text()
|
funcName := expr.Children[0].Token.Text()
|
||||||
parameters := expr.Children[1:]
|
parameters := expr.Children[1:]
|
||||||
|
|
||||||
for i, parameter := range parameters {
|
for i := len(parameters) - 1; i >= 0; i-- {
|
||||||
err := f.ExpressionToRegister(parameter, f.CPU.Syscall[i])
|
err := f.ExpressionToRegister(parameters[i], f.CPU.Syscall[i])
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user