diff options
| author | oda-gitso <105083118+oda-gitso@users.noreply.github.com> | 2022-05-29 01:08:06 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-28 13:08:06 -0500 |
| commit | 7fa9b7daa5a8bb5760724ac2d94f5298c60dc905 (patch) | |
| tree | 2634bf1f216796b6f236987df3e381f016109378 /Modules | |
| parent | dec1e9346d82fa4a4761389c81d36ef9d01f332b (diff) | |
| download | cpython-git-7fa9b7daa5a8bb5760724ac2d94f5298c60dc905.tar.gz | |
gh-92839: fixed typo in _bisectmodule.c (line 131) (#92849)
Diffstat (limited to 'Modules')
| -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 19e9cd2d46..0caa92b2dc 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); |
