From 979d37ff368bdb389502dbd45a02f1c24d5164b5 Mon Sep 17 00:00:00 2001 From: Joseph Long Date: Sun, 19 May 2024 00:38:43 -0700 Subject: [PATCH] python: typo fix --- python/magaox/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/magaox/utils.py b/python/magaox/utils.py index 7c994961b..4760114fa 100644 --- a/python/magaox/utils.py +++ b/python/magaox/utils.py @@ -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)