# HG changeset patch # User Gilles Duboscq # Date 1382430692 -7200 # Node ID 11dc3108904f666760e8f260fe6cca3dd3d7a327 # Parent bddf5ae62522295bcbc119d2db82d9d9a0daeabe Fix NodeClass.getFirstLevel(Input|Successor)Positions to use the NODE_LIST constant instead of 0 diff -r bddf5ae62522 -r 11dc3108904f graal/com.oracle.graal.graph/src/com/oracle/graal/graph/NodeClass.java --- a/graal/com.oracle.graal.graph/src/com/oracle/graal/graph/NodeClass.java Tue Oct 22 09:58:21 2013 +0200 +++ b/graal/com.oracle.graal.graph/src/com/oracle/graal/graph/NodeClass.java Tue Oct 22 10:31:32 2013 +0200 @@ -1194,7 +1194,7 @@ } public Position next() { - Position pos = new Position(true, i, i >= directInputCount ? 0 : NOT_ITERABLE); + Position pos = new Position(true, i, i >= directInputCount ? NODE_LIST : NOT_ITERABLE); i++; return pos; } @@ -1224,7 +1224,7 @@ } public Position next() { - Position pos = new Position(false, i, i >= directSuccessorCount ? 0 : NOT_ITERABLE); + Position pos = new Position(false, i, i >= directSuccessorCount ? NODE_LIST : NOT_ITERABLE); i++; return pos; }