Skip to content

Commit

Permalink
fix parameter type conversion fails when calling method
Browse files Browse the repository at this point in the history
Signed-off-by: SimFG <[email protected]>
  • Loading branch information
SimFG committed Dec 26, 2024
1 parent f7834e1 commit a9a7649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ func (vm *VM) Run(program *Program, env any) (_ any, err error) {
requestType := reflect.TypeOf(param)
requestValue := reflect.ValueOf(param)
if requestType != methodType {
requestValue = requestValue.Convert(requestType)
requestValue = requestValue.Convert(methodType)
}
in[i] = requestValue
}
Expand Down

0 comments on commit a9a7649

Please sign in to comment.