Skip to content

Commit

Permalink
* parse.y (value_expr_gen): removed inappropriate warning.
Browse files Browse the repository at this point in the history
  [ruby-core:15660]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Feb 26, 2008
1 parent fbee9ba commit 43b1b0e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Tue Feb 26 15:50:10 2008 Nobuyoshi Nakada <[email protected]>

* parse.y (value_expr_gen): removed inappropriate warning.
[ruby-core:15660]

Tue Feb 26 15:43:42 2008 Tanaka Akira <[email protected]>

* parse.y (tokadd_escape): refactored. [ruby-core:15657]
Expand Down
8 changes: 8 additions & 0 deletions parse.y
Original file line number Diff line number Diff line change
Expand Up @@ -7902,6 +7902,14 @@ value_expr_gen(struct parser_params *parser, NODE *node)
break;

case NODE_IF:
if (!node->nd_body) {
node = node->nd_else;
break;
}
else if (!node->nd_else) {
node = node->nd_body;
break;
}
if (!value_expr(node->nd_body)) return Qfalse;
node = node->nd_else;
break;
Expand Down

0 comments on commit 43b1b0e

Please sign in to comment.