From 855cc6b8457ae0e1d972d86a3f23e57bc056356a Mon Sep 17 00:00:00 2001 From: Sebastien Binet Date: Tue, 5 Jan 2016 16:36:53 +0100 Subject: [PATCH] bind/seq: fix C99-ism --- bind/_cpy/cgopy_seq_cpy.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bind/_cpy/cgopy_seq_cpy.c b/bind/_cpy/cgopy_seq_cpy.c index 1ab8db0..82a392f 100644 --- a/bind/_cpy/cgopy_seq_cpy.c +++ b/bind/_cpy/cgopy_seq_cpy.c @@ -223,7 +223,8 @@ cgopy_seq_buffer_read_bytearray(cgopy_seq_buffer buf) { return arr; } arr = cgopy_seq_bytearray_new(size); - for (int64_t i = 0; i < size; i++) { + int64_t i = 0; + for (i = 0; i < size; i++) { arr.Data[i] = cgopy_seq_buffer_read_uint8(buf); } return arr; @@ -300,7 +301,8 @@ cgopy_seq_buffer_write_bytearray(cgopy_seq_buffer buf, cgopy_seq_bytearray v) { } MEM_WRITE(int64_t) = v.Len; - for (int64_t i = 0; i < v.Len; i++) { + int64_t i = 0; + for (i = 0; i < v.Len; i++) { cgopy_seq_buffer_write_uint8(buf, v.Data[i]); } }