summaryrefslogtreecommitdiffhomepage
path: root/src/array.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-01-23 10:30:14 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-01-23 10:30:14 +0900
commitfdec607cd06bc12c844fd71bdb75db74f909ff74 (patch)
tree8675922916b4f63bd046ed5afb501720af8790ad /src/array.c
parent9d0f07e6a7c57d53cd394ceabffff6b44ca39fbd (diff)
downloadmruby-fdec607cd06bc12c844fd71bdb75db74f909ff74.tar.gz
mruby-fdec607cd06bc12c844fd71bdb75db74f909ff74.zip
Remove unnecessary inline declaration; ref #3409
Diffstat (limited to 'src/array.c')
-rw-r--r--src/array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/array.c b/src/array.c
index f634070e2..da54b3d6b 100644
--- a/src/array.c
+++ b/src/array.c
@@ -631,7 +631,7 @@ mrb_ary_splice(mrb_state *mrb, mrb_value ary, mrb_int head, mrb_int len, mrb_val
}
ary_fill_with_nil(a->ptr + a->len, head - a->len);
if (argc > 0) {
- for (int i = 0; i < argc; i++) {
+ for (i = 0; i < argc; i++) {
a->ptr[head + i] = argv[i];
}
}