1
0
mirror of https://github.com/json-iterator/go.git synced 2025-01-29 19:14:05 +02:00
This commit is contained in:
Tao Wen 2017-06-26 10:02:45 +08:00
parent 81e64121ba
commit d100b0d41f

View File

@ -461,7 +461,7 @@ func createEncoderOfType(cfg *frozenConfig, typ reflect.Type) (ValEncoder, error
}
return &uint32Codec{}, nil
case reflect.Uint64:
if typeName != "uint164" {
if typeName != "uint64" {
return encoderOfType(cfg, reflect.TypeOf((*uint64)(nil)).Elem())
}
return &uint64Codec{}, nil