mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
989e07c0f2
commit
8487c63fa3
2 changed files with 2 additions and 2 deletions
2
node.h
2
node.h
|
@ -540,7 +540,7 @@ void *rb_parser_malloc(struct parser_params *, size_t);
|
|||
void *rb_parser_realloc(struct parser_params *, void *, size_t);
|
||||
void *rb_parser_calloc(struct parser_params *, size_t, size_t);
|
||||
void rb_parser_free(struct parser_params *, void *);
|
||||
void rb_parser_printf(struct parser_params *parser, const char *fmt, ...);
|
||||
PRINTF_ARGS(void rb_parser_printf(struct parser_params *parser, const char *fmt, ...), 2, 3);
|
||||
|
||||
RUBY_SYMBOL_EXPORT_END
|
||||
|
||||
|
|
2
parse.y
2
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
|
||||
|
|
Loading…
Add table
Reference in a new issue