summaryrefslogtreecommitdiffstats
path: root/Modules/_bisectmodule.c
diff options
context:
space:
mode:
authoroda-gitso <105083118+oda-gitso@users.noreply.github.com>2022-05-28 18:08:06 (GMT)
committerGitHub <noreply@github.com>2022-05-28 18:08:06 (GMT)
commit7fa9b7daa5a8bb5760724ac2d94f5298c60dc905 (patch)
tree2634bf1f216796b6f236987df3e381f016109378 /Modules/_bisectmodule.c
parentdec1e9346d82fa4a4761389c81d36ef9d01f332b (diff)
downloadcpython-7fa9b7daa5a8bb5760724ac2d94f5298c60dc905.zip
cpython-7fa9b7daa5a8bb5760724ac2d94f5298c60dc905.tar.gz
cpython-7fa9b7daa5a8bb5760724ac2d94f5298c60dc905.tar.bz2
gh-92839: fixed typo in _bisectmodule.c (line 131) (#92849)
Diffstat (limited to 'Modules/_bisectmodule.c')
-rw-r--r--Modules/_bisectmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_bisectmodule.c b/Modules/_bisectmodule.c
index 19e9cd2..0caa92b 100644
--- a/Modules/_bisectmodule.c
+++ b/Modules/_bisectmodule.c
@@ -128,7 +128,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);
@@ -256,7 +256,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);