diff options
author | oda-gitso <105083118+oda-gitso@users.noreply.github.com> | 2022-05-28 18:08:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-28 18:08:06 (GMT) |
commit | 7fa9b7daa5a8bb5760724ac2d94f5298c60dc905 (patch) | |
tree | 2634bf1f216796b6f236987df3e381f016109378 /Modules/_bisectmodule.c | |
parent | dec1e9346d82fa4a4761389c81d36ef9d01f332b (diff) | |
download | cpython-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.c | 4 |
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); |