From b46cf528838b8bd798608a8be7eef463ae82b113 Mon Sep 17 00:00:00 2001 From: Jason Douglas Date: Tue, 26 Sep 2017 21:45:25 -0700 Subject: [PATCH] Fix 'for' loop initial declaration error --- _webp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_webp.c b/_webp.c index a6002e99c..fe825587d 100644 --- a/_webp.c +++ b/_webp.c @@ -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];