summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-05 05:17:22 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-05 05:17:22 +0000
commit8a5512b4bfeeed282f8fedbf5c87ec5f153b5691 (patch)
tree145edfd1970f3ed187c2781e3f5ce1a55ebc9ccf /parse.y
parent2da5ae4232ebb4b9b2cabd8bbb8ca5ee224afdbf (diff)
parse.y: fix restored cmdarg_stack
* parse.y (brace_body, do_body): since cmdarg_stack is saved in VALUE val, should restore from the same member. on big-endian platforms where VALUE is larger than int, it restored 0 in the upper word. [ruby-core:77920] [Bug #12900] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index a5ae823023..54ccc52cc6 100644
--- a/parse.y
+++ b/parse.y
@@ -3751,7 +3751,7 @@ brace_body : {$<vars>$ = dyna_push();}
{
$$ = new_brace_body($3, $4);
dyna_pop($<vars>1);
- CMDARG_SET($<num>2);
+ CMDARG_SET($<val>2);
}
;
@@ -3761,7 +3761,7 @@ do_body : {$<vars>$ = dyna_push();}
{
$$ = new_do_body($3, $4);
dyna_pop($<vars>1);
- CMDARG_SET($<num>2);
+ CMDARG_SET($<val>2);
}
;