summaryrefslogtreecommitdiffhomepage
path: root/src/variable.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-04-17 08:03:15 +0900
committerGitHub <[email protected]>2019-04-17 08:03:15 +0900
commit8ee516436b8d174a50764939bee23a442aa00b3f (patch)
treefbd95697b4a77102966b2f4f787ed08cfd6a14cb /src/variable.c
parent7c91efc1ffda769a5f1a872c646c82b00698f1b8 (diff)
parentef3b539125049b7c16bae883bdc5cee03ee378a4 (diff)
downloadmruby-8ee516436b8d174a50764939bee23a442aa00b3f.tar.gz
mruby-8ee516436b8d174a50764939bee23a442aa00b3f.zip
Merge pull request #4386 from tomas/stable
Fix compilation on gcc 4.9.x
Diffstat (limited to 'src/variable.c')
-rw-r--r--src/variable.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/variable.c b/src/variable.c
index 724b153fe..348d1e3e3 100644
--- a/src/variable.c
+++ b/src/variable.c
@@ -1115,7 +1115,8 @@ 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;