Commit b4ddca5e authored by Stefan Behnel's avatar Stefan Behnel

fix C compiler warning about comparison between signed and unsigned

parent 205e5041
......@@ -410,7 +410,7 @@ cdef class memoryview(object):
cdef {{memviewslice_name}} tmp_slice, *dst_slice
dst_slice = get_slice_from_memview(dst, &tmp_slice)
if self.view.itemsize > sizeof(array):
if <size_t>self.view.itemsize > sizeof(array):
tmp = malloc(self.view.itemsize)
if tmp == NULL:
raise MemoryError
......
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