Move int declaration
Fixes the build on travis where the C compiler apparently doesn't
support this kind of for loop declaration.
commit93720fd9599aba6a992b090d095625effc707e67
authorEdwin Brady <ecb10@st-andrews.ac.uk>
dateFri 20 Oct 2017, 12:41 (9 years ago)
parent7936fbb
rts/idris_rts.c+2−1
@@ -798,8 +798,9 @@ VAL idris_readRef(VAL ref) {
798798
799799VAL idris_newArray(VM* vm, int size, VAL def) {
800800 Closure* cl;
801+ int i;
801802 allocArray(cl, vm, size, 0);
802− for(int i=0; i<size; ++i) {
803+ for(i=0; i<size; ++i) {
803804 cl->info.arr.content[i] = def;
804805 }
805806 return cl;