Fix size_t not defined in PyPy

This commit is contained in:
Christoph Gohlke 2017-10-01 22:16:13 -07:00 committed by GitHub
parent 9e650ec713
commit b2a4aa2959

View File

@ -431,7 +431,7 @@ ImagingAllocateArray(Imaging im, int dirty, int block_size)
/* Bulletproof code from libc _int_memalign */
aligned_ptr = (char *)(
((size_t) (block.ptr + arena->alignment - 1)) &
-((ssize_t) arena->alignment));
-((Py_ssize_t) arena->alignment));
}
im->image[y] = aligned_ptr + aligned_linesize * line_in_block;