Skip to content

Commit

Permalink
Fix bug with convertToGoValue() that makes call to reflect.ValueOf()
Browse files Browse the repository at this point in the history
  • Loading branch information
programmingkidx committed Dec 24, 2023
1 parent 2ae96a8 commit c7f4718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objc/type_convertion.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c7f4718

Please sign in to comment.