diff options
author | Raymond Hettinger <python@rcn.com> | 2016-02-14 09:41:35 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2016-02-14 09:41:35 (GMT) |
commit | b6f17f5210843295ae87c779596acbe6835b36f0 (patch) | |
tree | 7c2a714f5d49f1cc02bf193576397aa6faf25d21 /Modules | |
parent | 8a5e69ca8ca8e921156556c0145a8c4bbd450c4d (diff) | |
download | cpython-b6f17f5210843295ae87c779596acbe6835b36f0.zip cpython-b6f17f5210843295ae87c779596acbe6835b36f0.tar.gz cpython-b6f17f5210843295ae87c779596acbe6835b36f0.tar.bz2 |
The return type of a rich comparison is an int
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_bisectmodule.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/_bisectmodule.c b/Modules/_bisectmodule.c index 02b55d1..22ddbf2 100644 --- a/Modules/_bisectmodule.c +++ b/Modules/_bisectmodule.c @@ -12,7 +12,8 @@ static Py_ssize_t internal_bisect_right(PyObject *list, PyObject *item, Py_ssize_t lo, Py_ssize_t hi) { PyObject *litem; - Py_ssize_t mid, res; + Py_ssize_t mid; + int res; if (lo < 0) { PyErr_SetString(PyExc_ValueError, "lo must be non-negative"); @@ -115,7 +116,8 @@ static Py_ssize_t internal_bisect_left(PyObject *list, PyObject *item, Py_ssize_t lo, Py_ssize_t hi) { PyObject *litem; - Py_ssize_t mid, res; + Py_ssize_t mid; + int res; if (lo < 0) { PyErr_SetString(PyExc_ValueError, "lo must be non-negative"); |