minor fix
This commit is contained in:
parent
e443049df9
commit
5f28280180
1 changed files with 9 additions and 5 deletions
|
@ -188,7 +188,9 @@ func (g *Generator) fillAny(any reflect.Value) error {
|
|||
return err
|
||||
}
|
||||
}
|
||||
if any.CanSet() {
|
||||
any.Set(slice)
|
||||
}
|
||||
|
||||
case reflect.UnsafePointer:
|
||||
addr, err := g.GenerateUInt64()
|
||||
|
@ -197,6 +199,8 @@ func (g *Generator) fillAny(any reflect.Value) error {
|
|||
}
|
||||
any.SetPointer(unsafe.Pointer(uintptr(addr)))
|
||||
|
||||
case reflect.Interface:
|
||||
|
||||
default:
|
||||
panic("unhandled default case")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue