bencode: get type of `big.Int` without creating instance (#651)
Nope, it doesn't really matter. But anyway, see c084706c22/cryptobyte/asn1.go (L267)
This commit is contained in:
parent
ed3b3ee5ca
commit
7b19e81fc6
|
@ -96,7 +96,7 @@ func (e *Encoder) reflectMarshaler(v reflect.Value) bool {
|
|||
return true
|
||||
}
|
||||
|
||||
var bigIntType = reflect.TypeOf(big.Int{})
|
||||
var bigIntType = reflect.TypeOf((*big.Int)(nil)).Elem()
|
||||
|
||||
func (e *Encoder) reflectValue(v reflect.Value) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue