summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-05-28 18:48:25 (GMT)
committerGitHub <noreply@github.com>2022-05-28 18:48:25 (GMT)
commit550c44b89513ea96d209e2ff761302238715f082 (patch)
treee0383ee79d931b0f8cf5d06a9ec49efcfb06e8f1 /Modules
parent9912b3d989b0cb442e9f9d55fbdd30d55591e2fc (diff)
downloadcpython-550c44b89513ea96d209e2ff761302238715f082.zip
cpython-550c44b89513ea96d209e2ff761302238715f082.tar.gz
cpython-550c44b89513ea96d209e2ff761302238715f082.tar.bz2
gh-92839: fixed typo in _bisectmodule.c (line 131) (GH-92849) (#93321)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_bisectmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_bisectmodule.c b/Modules/_bisectmodule.c
index 26c4b9b..16f981e 100644
--- a/Modules/_bisectmodule.c
+++ b/Modules/_bisectmodule.c
@@ -118,7 +118,7 @@ _bisect_insort_right_impl(PyObject *module, PyObject *a, PyObject *x,
index = internal_bisect_right(a, x, lo, hi, key);
} else {
key_x = PyObject_CallOneArg(key, x);
- if (x == NULL) {
+ if (key_x == NULL) {
return NULL;
}
index = internal_bisect_right(a, key_x, lo, hi, key);
@@ -245,7 +245,7 @@ _bisect_insort_left_impl(PyObject *module, PyObject *a, PyObject *x,
index = internal_bisect_left(a, x, lo, hi, key);
} else {
key_x = PyObject_CallOneArg(key, x);
- if (x == NULL) {
+ if (key_x == NULL) {
return NULL;
}
index = internal_bisect_left(a, key_x, lo, hi, key);