diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-02-16 14:30:23 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-02-16 14:30:23 (GMT) |
commit | ad0a4629beac0600c4c4c3167b0d68be57ca674e (patch) | |
tree | a4aef28fd7dbf93c7dabde51ce88fe1748e29427 /Modules/operator.c | |
parent | 97c65a8068056863215eb3a14024c1e4a8d19b9f (diff) | |
download | cpython-ad0a4629beac0600c4c4c3167b0d68be57ca674e.zip cpython-ad0a4629beac0600c4c4c3167b0d68be57ca674e.tar.gz cpython-ad0a4629beac0600c4c4c3167b0d68be57ca674e.tar.bz2 |
Use Py_ssize_t for counts and sizes.
Diffstat (limited to 'Modules/operator.c')
-rw-r--r-- | Modules/operator.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Modules/operator.c b/Modules/operator.c index 4817d33..1a2ef85 100644 --- a/Modules/operator.c +++ b/Modules/operator.c @@ -296,7 +296,7 @@ spam2(ge,__ge__, "ge(a, b) -- Same as a>=b.") typedef struct { PyObject_HEAD - int nitems; + Py_ssize_t nitems; PyObject *item; } itemgetterobject; @@ -307,7 +307,7 @@ itemgetter_new(PyTypeObject *type, PyObject *args, PyObject *kwds) { itemgetterobject *ig; PyObject *item; - int nitems; + Py_ssize_t nitems; if (!_PyArg_NoKeywords("itemgetter()", kwds)) return NULL; @@ -352,7 +352,7 @@ static PyObject * itemgetter_call(itemgetterobject *ig, PyObject *args, PyObject *kw) { PyObject *obj, *result; - int i, nitems=ig->nitems; + Py_ssize_t i, nitems=ig->nitems; if (!PyArg_UnpackTuple(args, "itemgetter", 1, 1, &obj)) return NULL; @@ -435,7 +435,7 @@ static PyTypeObject itemgetter_type = { typedef struct { PyObject_HEAD - int nattrs; + Py_ssize_t nattrs; PyObject *attr; } attrgetterobject; @@ -446,7 +446,7 @@ attrgetter_new(PyTypeObject *type, PyObject *args, PyObject *kwds) { attrgetterobject *ag; PyObject *attr; - int nattrs; + Py_ssize_t nattrs; if (!_PyArg_NoKeywords("attrgetter()", kwds)) return NULL; @@ -491,7 +491,7 @@ static PyObject * attrgetter_call(attrgetterobject *ag, PyObject *args, PyObject *kw) { PyObject *obj, *result; - int i, nattrs=ag->nattrs; + Py_ssize_t i, nattrs=ag->nattrs; if (!PyArg_UnpackTuple(args, "attrgetter", 1, 1, &obj)) return NULL; |