Skip to content

Commit 39ebc00

Browse files
committed
typo
1 parent 6e8615f commit 39ebc00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_json.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1848,7 +1848,7 @@ encoder_listencode_list(PyEncoderObject *s, PyUnicodeWriter *writer,
18481848
result = _encoder_iterate_fast_seq_lock_held(s, writer, seq, s_fast,
18491849
indent_level, indent_cache, separator);
18501850
Py_END_CRITICAL_SECTION_SEQUENCE_FAST();
1851-
if (result < -1) {
1851+
if (result < 0) {
18521852
goto bail;
18531853
}
18541854
if (ident != NULL) {

0 commit comments

Comments
 (0)