summaryrefslogtreecommitdiffstats
path: root/Modules/_bisectmodule.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-02-16 14:30:23 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-02-16 14:30:23 (GMT)
commitad0a4629beac0600c4c4c3167b0d68be57ca674e (patch)
treea4aef28fd7dbf93c7dabde51ce88fe1748e29427 /Modules/_bisectmodule.c
parent97c65a8068056863215eb3a14024c1e4a8d19b9f (diff)
downloadcpython-ad0a4629beac0600c4c4c3167b0d68be57ca674e.zip
cpython-ad0a4629beac0600c4c4c3167b0d68be57ca674e.tar.gz
cpython-ad0a4629beac0600c4c4c3167b0d68be57ca674e.tar.bz2
Use Py_ssize_t for counts and sizes.
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 e40297d..64fc046 100644
--- a/Modules/_bisectmodule.c
+++ b/Modules/_bisectmodule.c
@@ -6,10 +6,10 @@ Converted to C by Dmitry Vasiliev (dima at hlabs.spb.ru).
#include "Python.h"
static int
-internal_bisect_right(PyObject *list, PyObject *item, int lo, int hi)
+internal_bisect_right(PyObject *list, PyObject *item, Py_ssize_t lo, Py_ssize_t hi)
{
PyObject *litem;
- int mid, res;
+ Py_ssize_t mid, res;
if (hi == -1) {
hi = PySequence_Size(list);