Skip to content

Commit b5f5fc0

Browse files
authored
Apply suggestion from @eendebakpt
1 parent 22f1cbf commit b5f5fc0

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Modules/_json.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,9 +1076,7 @@ _match_number_unicode(PyScannerObject *s, PyObject *pystr, Py_ssize_t start, Py_
10761076

10771077
/* Fast path for integers with at most 19 digits (excluding the
10781078
optional minus sign): the magnitude always fits in an unsigned
1079-
long long, so construct the result from it directly and skip the
1080-
PyBytes allocation and the generic PyLong_FromString parser.
1081-
Integers with more digits fall back below. */
1079+
long long, so we construct the result from it directly. */
10821080
int neg = (PyUnicode_READ(kind, str, start) == '-');
10831081
if (!is_float && idx - start - neg <= 19) {
10841082
unsigned long long value = 0;

0 commit comments

Comments
 (0)