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:
YenForYang 2021-09-17 21:44:47 -05:00 committed by GitHub
parent ed3b3ee5ca
commit 7b19e81fc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) {