diff options
Diffstat (limited to 'Objects/memoryobject.c')
-rw-r--r-- | Objects/memoryobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/memoryobject.c b/Objects/memoryobject.c index 02f21ce..f0a45f6 100644 --- a/Objects/memoryobject.c +++ b/Objects/memoryobject.c @@ -78,7 +78,7 @@ memory_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds) static void _strided_copy_nd(char *dest, char *src, int nd, Py_ssize_t *shape, - Py_ssize_t *strides, int itemsize, char fort) + Py_ssize_t *strides, Py_ssize_t itemsize, char fort) { int k; Py_ssize_t outstride; @@ -298,7 +298,7 @@ memory_format_get(PyMemoryViewObject *self) static PyObject * memory_itemsize_get(PyMemoryViewObject *self) { - return PyInt_FromLong(self->view.itemsize); + return PyInt_FromSsize_t(self->view.itemsize); } static PyObject * |