mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
make MS C compiler happy
This commit is contained in:
parent
145180a105
commit
385963928f
|
@ -390,7 +390,7 @@ ImagingAllocateArray(Imaging im, int dirty, int block_size)
|
|||
ImagingMemoryArena arena = &ImagingDefaultArena;
|
||||
ImagingMemoryBlock block = {NULL, 0};
|
||||
int aligned_linesize, lines_per_block, blocks_count;
|
||||
void *aligned_ptr;
|
||||
char *aligned_ptr;
|
||||
|
||||
/* 0-width or 0-height image. No need to do anything */
|
||||
if ( ! im->linesize || ! im->ysize) {
|
||||
|
@ -430,7 +430,7 @@ ImagingAllocateArray(Imaging im, int dirty, int block_size)
|
|||
}
|
||||
im->blocks[current_block] = block;
|
||||
/* This is copied from libc _int_memalign */
|
||||
aligned_ptr = (void *)(
|
||||
aligned_ptr = (char *)(
|
||||
((unsigned long) (block.ptr + arena->alignment - 1)) &
|
||||
-((signed long) arena->alignment));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user