Skip to content

Commit 4d04a5a

Browse files
OTheDevpython-sidebar
authored andcommitted
pythongh-101965: Fix usage of Py_EnterRecursiveCall return value in _bisectmodule.c (pythonGH-101966)
Closes python#101965 Automerge-Triggered-By: GH:erlend-aasland
1 parent e412f67 commit 4d04a5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_bisectmodule.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ internal_bisect_right(PyObject *list, PyObject *item, Py_ssize_t lo, Py_ssize_t
6666
if (sq_item == NULL) {
6767
return -1;
6868
}
69-
if (Py_EnterRecursiveCall("in _bisect.bisect_right") < 0) {
69+
if (Py_EnterRecursiveCall("in _bisect.bisect_right")) {
7070
return -1;
7171
}
7272
PyTypeObject *tp = Py_TYPE(item);
@@ -246,7 +246,7 @@ internal_bisect_left(PyObject *list, PyObject *item, Py_ssize_t lo, Py_ssize_t h
246246
if (sq_item == NULL) {
247247
return -1;
248248
}
249-
if (Py_EnterRecursiveCall("in _bisect.bisect_left") < 0) {
249+
if (Py_EnterRecursiveCall("in _bisect.bisect_left")) {
250250
return -1;
251251
}
252252
PyTypeObject *tp = Py_TYPE(item);

0 commit comments

Comments
 (0)