Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythongh-101965: Fix usage of Py_EnterRecursiveCall return value in _…
Browse files Browse the repository at this point in the history
…bisectmodule.c (pythonGH-101966)

Closes python#101965

Automerge-Triggered-By: GH:erlend-aasland
OTheDev authored and python-sidebar committed Sep 1, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent e412f67 commit 4d04a5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/_bisectmodule.c
Original file line number Diff line number Diff line change
@@ -66,7 +66,7 @@ internal_bisect_right(PyObject *list, PyObject *item, Py_ssize_t lo, Py_ssize_t
if (sq_item == NULL) {
return -1;
}
if (Py_EnterRecursiveCall("in _bisect.bisect_right") < 0) {
if (Py_EnterRecursiveCall("in _bisect.bisect_right")) {
return -1;
}
PyTypeObject *tp = Py_TYPE(item);
@@ -246,7 +246,7 @@ internal_bisect_left(PyObject *list, PyObject *item, Py_ssize_t lo, Py_ssize_t h
if (sq_item == NULL) {
return -1;
}
if (Py_EnterRecursiveCall("in _bisect.bisect_left") < 0) {
if (Py_EnterRecursiveCall("in _bisect.bisect_left")) {
return -1;
}
PyTypeObject *tp = Py_TYPE(item);

0 comments on commit 4d04a5a

Please sign in to comment.