Fix 'for' loop initial declaration error

This commit is contained in:
Jason Douglas 2017-09-26 21:45:25 -07:00
parent 356da80686
commit b46cf52883

View File

@ -368,7 +368,8 @@ PyObject* _anim_decoder_get_next(PyObject* self, PyObject* args)
uint32_t pixel_count = size / 4;
uint8_t* src = 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[1] = src[1];
dst[2] = src[2];