summaryrefslogtreecommitdiffstats
path: root/Objects/memoryobject.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2007-12-02 14:31:20 (GMT)
committerChristian Heimes <christian@cheimes.de>2007-12-02 14:31:20 (GMT)
commit217cfd1c86c59ed8a55ce6d6b88bbe37309e7ba2 (patch)
tree4737b4a91359c94953623ab9ee297e9a90f319e4 /Objects/memoryobject.c
parent1a3284ed69d545e4ef59869998cb8c29233a45fa (diff)
downloadcpython-217cfd1c86c59ed8a55ce6d6b88bbe37309e7ba2.zip
cpython-217cfd1c86c59ed8a55ce6d6b88bbe37309e7ba2.tar.gz
cpython-217cfd1c86c59ed8a55ce6d6b88bbe37309e7ba2.tar.bz2
Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h
Diffstat (limited to 'Objects/memoryobject.c')
-rw-r--r--Objects/memoryobject.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Objects/memoryobject.c b/Objects/memoryobject.c
index 2f177c2..c60c53c 100644
--- a/Objects/memoryobject.c
+++ b/Objects/memoryobject.c
@@ -303,7 +303,7 @@ memory_format_get(PyMemoryViewObject *self)
static PyObject *
memory_itemsize_get(PyMemoryViewObject *self)
{
- return PyInt_FromSsize_t(self->view.itemsize);
+ return PyLong_FromSsize_t(self->view.itemsize);
}
static PyObject *
@@ -320,7 +320,7 @@ _IntTupleFromSsizet(int len, Py_ssize_t *vals)
intTuple = PyTuple_New(len);
if (!intTuple) return NULL;
for(i=0; i<len; i++) {
- o = PyInt_FromSsize_t(vals[i]);
+ o = PyLong_FromSsize_t(vals[i]);
if (!o) {
Py_DECREF(intTuple);
return NULL;
@@ -351,7 +351,7 @@ memory_suboffsets_get(PyMemoryViewObject *self)
static PyObject *
memory_size_get(PyMemoryViewObject *self)
{
- return PyInt_FromSsize_t(self->view.len);
+ return PyLong_FromSsize_t(self->view.len);
}
static PyObject *
@@ -363,7 +363,7 @@ memory_readonly_get(PyMemoryViewObject *self)
static PyObject *
memory_ndim_get(PyMemoryViewObject *self)
{
- return PyInt_FromLong(self->view.ndim);
+ return PyLong_FromLong(self->view.ndim);
}
static PyGetSetDef memory_getsetlist[] ={