1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2006-08-28 02:33:04 +00:00
parent a4e85a53e5
commit 657b626899
2 changed files with 3 additions and 4 deletions

5
eval.c
View file

@ -2877,10 +2877,9 @@ rb_eval(VALUE self, NODE *n)
case NODE_CASE:
{
VALUE val = Qundef;
VALUE val;
if (node->nd_head)
val = rb_eval(self, node->nd_head);
val = rb_eval(self, node->nd_head);
node = node->nd_body;
while (node) {
if (nd_type(node) != NODE_WHEN) {

View file

@ -2605,7 +2605,7 @@ primary : literal
| keyword_case opt_terms case_body keyword_end
{
/*%%%*/
$$ = NEW_CASE(NULL, $3);
$$ = $3;
/*%
$$ = dispatch2(case, Qnil, $3);
%*/