aboutsummaryrefslogtreecommitdiffstats
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
commit028f3801f806a6aebe7d8d1fb78d0ba3e38d6036 (patch)
treefb1f6d45893a3ccc7ef7327220289efdec5d05a0
parent828270af133a07cdef1ebd1d4db4c8b23e31eb52 (diff)
downloadruby-028f3801f806a6aebe7d8d1fb78d0ba3e38d6036.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
-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));