Skip to content

Commit

Permalink
Fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro Rinaldi committed Sep 27, 2021
1 parent 290afeb commit 69437f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ func (self *_runtime) convertNumeric(v Value, t reflect.Type) reflect.Value {
}

func fieldIndexByName(t reflect.Type, name string) []int {
if t.Kind() != reflect.Struct {
return nil
for t.Kind() == reflect.Ptr {
t = reflect.ValueOf(t).Elem().Type()
}
for i := 0; i < t.NumField(); i++ {
f := t.Field(i)
Expand Down

0 comments on commit 69437f3

Please sign in to comment.