mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-05 21:53:15 +03:00
Fix 'for' loop initial declaration error
This commit is contained in:
parent
356da80686
commit
b46cf52883
3
_webp.c
3
_webp.c
|
@ -368,7 +368,8 @@ PyObject* _anim_decoder_get_next(PyObject* self, PyObject* args)
|
||||||
uint32_t pixel_count = size / 4;
|
uint32_t pixel_count = size / 4;
|
||||||
uint8_t* src = buf;
|
uint8_t* src = buf;
|
||||||
uint8_t* dst = buf;
|
uint8_t* dst = buf;
|
||||||
for (uint32_t idx = 0; idx < pixel_count; ++idx) {
|
uint32_t idx;
|
||||||
|
for (idx = 0; idx < pixel_count; ++idx) {
|
||||||
dst[0] = src[0];
|
dst[0] = src[0];
|
||||||
dst[1] = src[1];
|
dst[1] = src[1];
|
||||||
dst[2] = src[2];
|
dst[2] = src[2];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user