Skip to content

Commit c7f4718

Browse files
Fix bug with convertToGoValue() that makes call to reflect.ValueOf()
1 parent 2ae96a8 commit c7f4718

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

objc/type_convertion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ func convertToGoValue(p unsafe.Pointer, t reflect.Type) reflect.Value {
254254
return reflect.ValueOf(ToGoSlice(*(*unsafe.Pointer)(p), t).Interface())
255255
}
256256
case reflect.Map:
257-
return reflect.ValueOf(ToGoMap(*(*unsafe.Pointer)(p), t))
257+
return ToGoMap(*(*unsafe.Pointer)(p), t)
258258
case reflect.Struct:
259259
return reflect.NewAt(t, p).Elem()
260260
case reflect.Func:

0 commit comments

Comments
 (0)