1
0
mirror of https://github.com/json-iterator/go.git synced 2024-11-24 08:22:14 +02:00

把floatDigits改为intDigits

This commit is contained in:
yellow chicks 2017-06-06 21:08:04 +08:00 committed by GitHub
parent d09e2419ba
commit aa5181db67

View File

@ -17,7 +17,7 @@ const uint8Max = uint32(0xffff)
func init() {
intDigits = make([]int8, 256)
for i := 0; i < len(floatDigits); i++ {
for i := 0; i < len(intDigits); i++ {
intDigits[i] = invalidCharForNumber
}
for i := int8('0'); i <= int8('9'); i++ {