From c7f471886bca0617fc7afcb2fa07c0348d353098 Mon Sep 17 00:00:00 2001 From: John Arbuckle Date: Sun, 24 Dec 2023 00:56:46 -0500 Subject: [PATCH] Fix bug with convertToGoValue() that makes call to reflect.ValueOf() --- objc/type_convertion.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/objc/type_convertion.go b/objc/type_convertion.go index fcd026a4..31a69249 100644 --- a/objc/type_convertion.go +++ b/objc/type_convertion.go @@ -254,7 +254,7 @@ func convertToGoValue(p unsafe.Pointer, t reflect.Type) reflect.Value { return reflect.ValueOf(ToGoSlice(*(*unsafe.Pointer)(p), t).Interface()) } case reflect.Map: - return reflect.ValueOf(ToGoMap(*(*unsafe.Pointer)(p), t)) + return ToGoMap(*(*unsafe.Pointer)(p), t) case reflect.Struct: return reflect.NewAt(t, p).Elem() case reflect.Func: