From 8487c63fa337df5e965ea6ee1858b26dc284861c Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 17 May 2018 12:36:33 +0000 Subject: rb_parser_printf declaration * node.h (rb_parser_printf): delcare as PRINTF_ARGS. * parse.y (parser_token_value_print): cast to adjust to %c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parse.y') 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 -- cgit v1.2.3