aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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));