summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-08-15 01:33:31 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-08-15 11:40:06 +0900
commit2aa6826e81ec880f5e98fa995e44fae0819be95d (patch)
tree4b01025821aab8272edeb54d6c7968bb7655bdac /parse.y
parent4568ba071107a139b9f02fc17aa12f998181abf1 (diff)
Extract the wrapped value when yydebug [Bug #18075]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4742
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 4c4cbcf6331..cd6971055ad 100644
--- a/parse.y
+++ b/parse.y
@@ -10791,7 +10791,7 @@ parser_token_value_print(struct parser_params *p, enum yytokentype type, const Y
#ifndef RIPPER
v = valp->node->nd_lit;
#else
- v = valp->val;
+ v = get_value(valp->val);
#endif
rb_parser_printf(p, "%+"PRIsVALUE, v);
break;