mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-15 01:34:45 +03:00
declare loop variable outside loop
This commit is contained in:
parent
a63bcfbfb4
commit
31ad2bc133
|
@ -414,10 +414,11 @@ unpackL4IR(UINT8 *out, const UINT8 *in, int pixels) {
|
||||||
|
|
||||||
static void
|
static void
|
||||||
unpackLAL(UINT8 *out, const UINT8 *in, int pixels) {
|
unpackLAL(UINT8 *out, const UINT8 *in, int pixels) {
|
||||||
|
int i;
|
||||||
UINT8 *in1 = in;
|
UINT8 *in1 = in;
|
||||||
UINT8 *in2 = in + pixels;
|
UINT8 *in2 = in + pixels;
|
||||||
/* LA, line interleaved */
|
/* LA, line interleaved */
|
||||||
for (int i = 0; i < pixels; ++i) {
|
for (i = 0; i < pixels; ++i) {
|
||||||
*out++ = *in1++;
|
*out++ = *in1++;
|
||||||
*out++ = *in2++;
|
*out++ = *in2++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user