Skip to content

Commit 6373b5e

Browse files
committed
bind/seq: fix C99-ism
1 parent 5c019fe commit 6373b5e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bind/_cpy/cgopy_seq_cpy.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@ cgopy_seq_buffer_read_bytearray(cgopy_seq_buffer buf) {
223223
return arr;
224224
}
225225
arr = cgopy_seq_bytearray_new(size);
226-
for (int64_t i = 0; i < size; i++) {
226+
int64_t i = 0;
227+
for (i = 0; i < size; i++) {
227228
arr.Data[i] = cgopy_seq_buffer_read_uint8(buf);
228229
}
229230
return arr;
@@ -300,7 +301,8 @@ cgopy_seq_buffer_write_bytearray(cgopy_seq_buffer buf, cgopy_seq_bytearray v) {
300301
}
301302

302303
MEM_WRITE(int64_t) = v.Len;
303-
for (int64_t i = 0; i < v.Len; i++) {
304+
int64_t i = 0;
305+
for (i = 0; i < v.Len; i++) {
304306
cgopy_seq_buffer_write_uint8(buf, v.Data[i]);
305307
}
306308
}

0 commit comments

Comments
 (0)