Forgot that capital E can be used in floats too, I hate case sensitivity.
This commit is contained in:
parent
8915df00e2
commit
0b143a46a5
1 changed files with 1 additions and 1 deletions
|
|
@ -326,7 +326,7 @@ proc getTok(my: var TJsonParser): TTokKind =
|
|||
case my.buf[my.bufpos]
|
||||
of '-', '.', '0'..'9':
|
||||
parseNumber(my)
|
||||
if {'.', 'e'} in my.a:
|
||||
if {'.', 'e', 'E'} in my.a:
|
||||
result = tkFloat
|
||||
else:
|
||||
result = tkInt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue