Commit 4d40476
Remove redundant Float64 validation from scanNumber
The lexer already validates numeric literal syntax character-by-character.
The Float64() check rejected syntactically valid numbers that exceed
float64 range, which is unnecessary since CompareNumeric handles
json.Number losslessly via big.Float.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 8520d57 commit 4d40476
1 file changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
| 234 | + | |
| 235 | + | |
239 | 236 | | |
240 | 237 | | |
241 | 238 | | |
| |||
0 commit comments