aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-30 13:14:31 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-30 13:14:31 +0000
commit677f327acf9c17fd63d333d3796985669bc588f4 (patch)
treefb1f6d45893a3ccc7ef7327220289efdec5d05a0 /parse.y
parentf2fbcf2c18abc6704ce3dcf7bf15f5c32c3d8618 (diff)
downloadruby-677f327acf9c17fd63d333d3796985669bc588f4.tar.gz
parse.y: get rid of ISASCII on ID
* parse.y (ripper_id2sym): do not call ISASCII() on ID, rb_isascii is restricted to int now. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 3eaa6926e5..1bc22071b5 100644
--- a/parse.y
+++ b/parse.y
@@ -11274,7 +11274,7 @@ ripper_id2sym(ID id)
const char *name;
char buf[8];
- if (ISASCII(id)) {
+ if (id == (ID)(signed char)id) {
buf[0] = (char)id;
buf[1] = '\0';
return ID2SYM(rb_intern2(buf, 1));