aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
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 3515fde47f..f044ae2aff 100644
--- a/parse.y
+++ b/parse.y
@@ -9110,7 +9110,7 @@ parser_token_value_print(struct parser_params *p, enum yytokentype type, const Y
break;
case tBACK_REF:
#ifndef RIPPER
- rb_parser_printf(p, "$%c", valp->node->nd_nth);
+ rb_parser_printf(p, "$%c", (int)valp->node->nd_nth);
#else
rb_parser_printf(p, "%"PRIsVALUE, valp->val);
#endif