1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

remove warning about enum and int comparison.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2017-02-08 03:59:53 +00:00
parent 5c54868987
commit 470564331d

2
node.c
View file

@ -338,7 +338,7 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node)
andor: andor:
while (1) { while (1) {
F_NODE(nd_1st, "left expr"); 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; break;
node = node->nd_2nd; node = node->nd_2nd;
} }