ruby-changes:45502
From: ko1 <ko1@a...>
Date: Wed, 8 Feb 2017 12:59:57 +0900 (JST)
Subject: [ruby-changes:45502] ko1:r57575 (trunk): remove warning about enum and int comparison.
ko1 2017-02-08 12:59:53 +0900 (Wed, 08 Feb 2017) New Revision: 57575 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57575 Log: remove warning about enum and int comparison. Modified files: trunk/node.c Index: node.c =================================================================== --- node.c (revision 57574) +++ node.c (revision 57575) @@ -338,7 +338,7 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L338 andor: while (1) { F_NODE(nd_1st, "left expr"); - if (!node->nd_2nd || nd_type(node->nd_2nd) != type) + if (!node->nd_2nd || nd_type(node->nd_2nd) != (int)type) break; node = node->nd_2nd; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/