Commit 9b4eb5fd authored by Robert Bradshaw's avatar Robert Bradshaw

Merge pull request #231 from joshayers/ms_compiler_warnings

Fix several MS compiler warnings.
parents 1fcaf853 68581901
......@@ -117,7 +117,7 @@ cdef class array:
cdef Py_ssize_t i
cdef PyObject **p
self.ndim = len(shape)
self.ndim = <int> len(shape)
self.itemsize = itemsize
if not self.ndim:
......@@ -870,7 +870,7 @@ cdef int slice_memviewslice(
#
@cname('__pyx_pybuffer_index')
cdef char *pybuffer_index(Py_buffer *view, char *bufp, Py_ssize_t index,
int dim) except NULL:
Py_ssize_t dim) except NULL:
cdef Py_ssize_t shape, stride, suboffset = -1
cdef Py_ssize_t itemsize = view.itemsize
cdef char *resultp
......
......@@ -580,7 +580,7 @@ __pyx_memoryview_copy_new_contig(const __Pyx_memviewslice *from_mvs,
for(i = 0; i < ndim; i++) {
temp_int = PyInt_FromLong(from_mvs->shape[i]);
temp_int = PyInt_FromSsize_t(from_mvs->shape[i]);
if(unlikely(!temp_int)) {
goto fail;
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment