mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-04 21:50:54 +03:00
Merge pull request #3754 from radarhere/warnings
Fixed incompatible pointer type warnings
This commit is contained in:
commit
d4ff547149
|
@ -29,8 +29,8 @@ ImagingFlipLeftRight(Imaging imOut, Imaging imIn)
|
||||||
|
|
||||||
#define FLIP_LEFT_RIGHT(INT, image) \
|
#define FLIP_LEFT_RIGHT(INT, image) \
|
||||||
for (y = 0; y < imIn->ysize; y++) { \
|
for (y = 0; y < imIn->ysize; y++) { \
|
||||||
INT* in = imIn->image[y]; \
|
INT* in = (INT *)imIn->image[y]; \
|
||||||
INT* out = imOut->image[y]; \
|
INT* out = (INT *)imOut->image[y]; \
|
||||||
xr = imIn->xsize-1; \
|
xr = imIn->xsize-1; \
|
||||||
for (x = 0; x < imIn->xsize; x++, xr--) \
|
for (x = 0; x < imIn->xsize; x++, xr--) \
|
||||||
out[xr] = in[x]; \
|
out[xr] = in[x]; \
|
||||||
|
@ -105,10 +105,10 @@ ImagingRotate90(Imaging imOut, Imaging imIn)
|
||||||
yyysize = yy + ROTATE_SMALL_CHUNK < imIn->ysize ? yy + ROTATE_SMALL_CHUNK : imIn->ysize; \
|
yyysize = yy + ROTATE_SMALL_CHUNK < imIn->ysize ? yy + ROTATE_SMALL_CHUNK : imIn->ysize; \
|
||||||
xxxsize = xx + ROTATE_SMALL_CHUNK < imIn->xsize ? xx + ROTATE_SMALL_CHUNK : imIn->xsize; \
|
xxxsize = xx + ROTATE_SMALL_CHUNK < imIn->xsize ? xx + ROTATE_SMALL_CHUNK : imIn->xsize; \
|
||||||
for (yyy = yy; yyy < yyysize; yyy++) { \
|
for (yyy = yy; yyy < yyysize; yyy++) { \
|
||||||
INT* in = imIn->image[yyy]; \
|
INT* in = (INT *)imIn->image[yyy]; \
|
||||||
xr = imIn->xsize - 1 - xx; \
|
xr = imIn->xsize - 1 - xx; \
|
||||||
for (xxx = xx; xxx < xxxsize; xxx++, xr--) { \
|
for (xxx = xx; xxx < xxxsize; xxx++, xr--) { \
|
||||||
INT* out = imOut->image[xr]; \
|
INT* out = (INT *)imOut->image[xr]; \
|
||||||
out[yyy] = in[xxx]; \
|
out[yyy] = in[xxx]; \
|
||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
|
@ -161,9 +161,9 @@ ImagingTranspose(Imaging imOut, Imaging imIn)
|
||||||
yyysize = yy + ROTATE_SMALL_CHUNK < imIn->ysize ? yy + ROTATE_SMALL_CHUNK : imIn->ysize; \
|
yyysize = yy + ROTATE_SMALL_CHUNK < imIn->ysize ? yy + ROTATE_SMALL_CHUNK : imIn->ysize; \
|
||||||
xxxsize = xx + ROTATE_SMALL_CHUNK < imIn->xsize ? xx + ROTATE_SMALL_CHUNK : imIn->xsize; \
|
xxxsize = xx + ROTATE_SMALL_CHUNK < imIn->xsize ? xx + ROTATE_SMALL_CHUNK : imIn->xsize; \
|
||||||
for (yyy = yy; yyy < yyysize; yyy++) { \
|
for (yyy = yy; yyy < yyysize; yyy++) { \
|
||||||
INT* in = imIn->image[yyy]; \
|
INT* in = (INT *)imIn->image[yyy]; \
|
||||||
for (xxx = xx; xxx < xxxsize; xxx++) { \
|
for (xxx = xx; xxx < xxxsize; xxx++) { \
|
||||||
INT* out = imOut->image[xxx]; \
|
INT* out = (INT *)imOut->image[xxx]; \
|
||||||
out[yyy] = in[xxx]; \
|
out[yyy] = in[xxx]; \
|
||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
|
@ -217,10 +217,10 @@ ImagingTransverse(Imaging imOut, Imaging imIn)
|
||||||
xxxsize = xx + ROTATE_SMALL_CHUNK < imIn->xsize ? xx + ROTATE_SMALL_CHUNK : imIn->xsize; \
|
xxxsize = xx + ROTATE_SMALL_CHUNK < imIn->xsize ? xx + ROTATE_SMALL_CHUNK : imIn->xsize; \
|
||||||
yr = imIn->ysize - 1 - yy; \
|
yr = imIn->ysize - 1 - yy; \
|
||||||
for (yyy = yy; yyy < yyysize; yyy++, yr--) { \
|
for (yyy = yy; yyy < yyysize; yyy++, yr--) { \
|
||||||
INT* in = imIn->image[yyy]; \
|
INT* in = (INT *)imIn->image[yyy]; \
|
||||||
xr = imIn->xsize - 1 - xx; \
|
xr = imIn->xsize - 1 - xx; \
|
||||||
for (xxx = xx; xxx < xxxsize; xxx++, xr--) { \
|
for (xxx = xx; xxx < xxxsize; xxx++, xr--) { \
|
||||||
INT* out = imOut->image[xr]; \
|
INT* out = (INT *)imOut->image[xr]; \
|
||||||
out[yr] = in[xxx]; \
|
out[yr] = in[xxx]; \
|
||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
|
@ -264,8 +264,8 @@ ImagingRotate180(Imaging imOut, Imaging imIn)
|
||||||
|
|
||||||
#define ROTATE_180(INT, image) \
|
#define ROTATE_180(INT, image) \
|
||||||
for (y = 0; y < imIn->ysize; y++, yr--) { \
|
for (y = 0; y < imIn->ysize; y++, yr--) { \
|
||||||
INT* in = imIn->image[y]; \
|
INT* in = (INT *)imIn->image[y]; \
|
||||||
INT* out = imOut->image[yr]; \
|
INT* out = (INT *)imOut->image[yr]; \
|
||||||
xr = imIn->xsize-1; \
|
xr = imIn->xsize-1; \
|
||||||
for (x = 0; x < imIn->xsize; x++, xr--) \
|
for (x = 0; x < imIn->xsize; x++, xr--) \
|
||||||
out[xr] = in[x]; \
|
out[xr] = in[x]; \
|
||||||
|
@ -317,9 +317,9 @@ ImagingRotate270(Imaging imOut, Imaging imIn)
|
||||||
xxxsize = xx + ROTATE_SMALL_CHUNK < imIn->xsize ? xx + ROTATE_SMALL_CHUNK : imIn->xsize; \
|
xxxsize = xx + ROTATE_SMALL_CHUNK < imIn->xsize ? xx + ROTATE_SMALL_CHUNK : imIn->xsize; \
|
||||||
yr = imIn->ysize - 1 - yy; \
|
yr = imIn->ysize - 1 - yy; \
|
||||||
for (yyy = yy; yyy < yyysize; yyy++, yr--) { \
|
for (yyy = yy; yyy < yyysize; yyy++, yr--) { \
|
||||||
INT* in = imIn->image[yyy]; \
|
INT* in = (INT *)imIn->image[yyy]; \
|
||||||
for (xxx = xx; xxx < xxxsize; xxx++) { \
|
for (xxx = xx; xxx < xxxsize; xxx++) { \
|
||||||
INT* out = imOut->image[xxx]; \
|
INT* out = (INT *)imOut->image[xxx]; \
|
||||||
out[yr] = in[xxx]; \
|
out[yr] = in[xxx]; \
|
||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user