Update dependencies

This commit is contained in:
Alexander Neumann committed 2019-04-24 15:17:48 +02:00
1 parent c7762453cf
commit ca8c3b4fd5
286 files changed
+28157 -15885

No files matched your search

+4 -1
View File
@@ -79,10 +79,13 @@ func toPointer(i *Message) pointer {
// toAddrPointer converts an interface to a pointer that points to
// the interface data.
func toAddrPointer(i *interface{}, isptr bool) pointer {
func toAddrPointer(i *interface{}, isptr, deref bool) pointer {
v := reflect.ValueOf(*i)
u := reflect.New(v.Type())
u.Elem().Set(v)
if deref {
u = u.Elem()
}
return pointer{v: u}
}