Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed fate sort, hopefully.
  • Loading branch information
jnthn committed Feb 27, 2013
1 parent 266da05 commit ce56d86
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/org/perl6/nqp/runtime/Ops.java
Expand Up @@ -3043,12 +3043,8 @@ else if (act == NFA.EDGE_CODEPOINT_I_NEG) {
* future, we'll want to factor in longest literal prefix too. */
int charFates = fates.size() - prevFates;
if (charFates > 1) {
/* XXX Busted... */
/*List<Integer> charFateList = fates.subList(prevFates, fates.size());
Collections.sort(charFateList);
int insertPos = prevFates;
for (int i = charFates - 1; i >= 0; i--)
fates.set(insertPos++, charFateList.get(i));*/
List<Integer> charFateList = fates.subList(prevFates, fates.size());
Collections.sort(charFateList, Collections.reverseOrder());
}
}

Expand Down

0 comments on commit ce56d86

Please sign in to comment.