mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +03:00
Fix size_t not defined in PyPy
This commit is contained in:
parent
9e650ec713
commit
b2a4aa2959
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user