diff options
-rw-r--r-- | eval.c | 5 | ||||
-rw-r--r-- | parse.y | 2 |
2 files changed, 3 insertions, 4 deletions
@@ -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) { @@ -2605,7 +2605,7 @@ primary : literal | keyword_case opt_terms case_body keyword_end { /*%%%*/ - $$ = NEW_CASE(NULL, $3); + $$ = $3; /*% $$ = dispatch2(case, Qnil, $3); %*/ |