1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2016-03-30 13:14:31 +00:00
parent 828270af13
commit 028f3801f8

View file

@ -11274,7 +11274,7 @@ ripper_id2sym(ID id)
const char *name; const char *name;
char buf[8]; char buf[8];
if (ISASCII(id)) { if (id == (ID)(signed char)id) {
buf[0] = (char)id; buf[0] = (char)id;
buf[1] = '\0'; buf[1] = '\0';
return ID2SYM(rb_intern2(buf, 1)); return ID2SYM(rb_intern2(buf, 1));