mirror of
https://github.com/python/cpython.git
synced 2025-11-29 14:31:30 +00:00
gh-101965: Fix usage of Py_EnterRecursiveCall return value in _bisectmodule.c (GH-101966)
Closes #101965 Automerge-Triggered-By: GH:erlend-aasland
This commit is contained in:
parent
02d9f1504b
commit
0f7a972530
1 changed files with 2 additions and 2 deletions
|
|
@ -66,7 +66,7 @@ internal_bisect_right(PyObject *list, PyObject *item, Py_ssize_t lo, Py_ssize_t
|
||||||
if (sq_item == NULL) {
|
if (sq_item == NULL) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (Py_EnterRecursiveCall("in _bisect.bisect_right") < 0) {
|
if (Py_EnterRecursiveCall("in _bisect.bisect_right")) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
PyTypeObject *tp = Py_TYPE(item);
|
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) {
|
if (sq_item == NULL) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (Py_EnterRecursiveCall("in _bisect.bisect_left") < 0) {
|
if (Py_EnterRecursiveCall("in _bisect.bisect_left")) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
PyTypeObject *tp = Py_TYPE(item);
|
PyTypeObject *tp = Py_TYPE(item);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue