Skip to content

Commit 0728e79

Browse files
committed
fix parameter type conversion fails when calling method
Signed-off-by: SimFG <bang.fu@zilliz.com>
1 parent 06a5435 commit 0728e79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/vm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ func (vm *VM) Run(program *Program, env any) (_ any, err error) {
341341
requestType := reflect.TypeOf(param)
342342
requestValue := reflect.ValueOf(param)
343343
if requestType != methodType {
344-
requestValue = requestValue.Convert(requestType)
344+
requestValue = requestValue.Convert(methodType)
345345
}
346346
in[i] = requestValue
347347
}

0 commit comments

Comments
 (0)