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:
parent
d09e2419ba
commit
aa5181db67
@ -17,7 +17,7 @@ const uint8Max = uint32(0xffff)
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
intDigits = make([]int8, 256)
|
intDigits = make([]int8, 256)
|
||||||
for i := 0; i < len(floatDigits); i++ {
|
for i := 0; i < len(intDigits); i++ {
|
||||||
intDigits[i] = invalidCharForNumber
|
intDigits[i] = invalidCharForNumber
|
||||||
}
|
}
|
||||||
for i := int8('0'); i <= int8('9'); i++ {
|
for i := int8('0'); i <= int8('9'); i++ {
|
||||||
|
Loading…
Reference in New Issue
Block a user