summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index e87bcfe..2438295 100644
--- a/parse.y
+++ b/parse.y
@@ -5879,8 +5879,8 @@ rb_intern(name)
}
break;
}
- while (*m && is_identchar(*m)) {
- m += mblen(m, name + last - m + 1);
+ while (m <= name + last && is_identchar(*m)) {
+ m += mbclen(*m);
}
if (*m) id = ID_JUNK;
id |= ++last_id << ID_SCOPE_SHIFT;