summaryrefslogtreecommitdiffhomepage
path: root/src/variable.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-04-10 05:42:36 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2019-04-10 05:42:36 +0900
commit16f86f8ede2f0d33fdd642d734c796b9435a57bf (patch)
tree297a1ab91c7403f8f9237dd79c43df47e03b25fe /src/variable.c
parent292bffb32e7434b4725f39924adf0e9f8af5d1cf (diff)
downloadmruby-16f86f8ede2f0d33fdd642d734c796b9435a57bf.tar.gz
mruby-16f86f8ede2f0d33fdd642d734c796b9435a57bf.zip
Use the old style declaration; ref #4365
Diffstat (limited to 'src/variable.c')
-rw-r--r--src/variable.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/variable.c b/src/variable.c
index 9edfb32bd..02e4f38a1 100644
--- a/src/variable.c
+++ b/src/variable.c
@@ -1116,7 +1116,9 @@ mrb_class_find_path(mrb_state *mrb, struct RClass *c)
mrb_bool
mrb_ident_p(const char *s, mrb_int len)
{
- for (mrb_int i = 0; i < len; i++) {
+ mrb_int i;
+
+ for (i = 0; i < len; i++) {
if (!identchar(s[i])) return FALSE;
}
return TRUE;