Skip to content

Commit

Permalink
python: typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-long committed May 19, 2024
1 parent f642eba commit 979d37f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/magaox/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ def _scan_once(string, idx):
elif nextchar == '-' and string[idx:idx + 4] == '-nan':
return parse_constant('NaN'), idx + 4
elif nextchar == 'i' and string[idx:idx + 3] == 'inf':
return parse_constant('Infinity'), idx + 8
return parse_constant('Infinity'), idx + 3
elif nextchar == '-' and string[idx:idx + 4] == '-inf':
return parse_constant('-Infinity'), idx + 9
return parse_constant('-Infinity'), idx + 4
else:
raise StopIteration(idx)

Expand Down

0 comments on commit 979d37f

Please sign in to comment.