1
0
mirror of https://github.com/json-iterator/go.git synced 2025-07-03 23:30:41 +02:00

Fix exponent parsing

This commit is contained in:
Jordan Liggitt
2017-07-10 02:06:37 -04:00
parent d336ee6da6
commit 0d6dae80e1
4 changed files with 34 additions and 3 deletions

View File

@ -133,7 +133,7 @@ load_loop:
for i := iter.head; i < iter.tail; i++ {
c := iter.buf[i]
switch c {
case '-', '.', 'e', 'E', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9':
case '+', '-', '.', 'e', 'E', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9':
str = append(str, c)
continue
default: