summaryrefslogtreecommitdiff
path: root/Modules/operator.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-02-16 14:30:23 +0000
committerMartin v. Löwis <martin@v.loewis.de>2006-02-16 14:30:23 +0000
commit452728f8dbedda975adb3d72e36fbc0e09b3f686 (patch)
tree38b51842e2d44d4647f7dad8337b75c88ef173df /Modules/operator.c
parentc1b0566f264c9a3a40f3f0d9e2ade2e8cb58fb21 (diff)
downloadcpython-452728f8dbedda975adb3d72e36fbc0e09b3f686.tar.gz
Use Py_ssize_t for counts and sizes.
Diffstat (limited to 'Modules/operator.c')
-rw-r--r--Modules/operator.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Modules/operator.c b/Modules/operator.c
index 4817d3389c..1a2ef852b9 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;