Skip to content

Commit

Permalink
inverted ordering for prefers and avoids (-1 becomes 1 and vice versa)
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Aug 13, 2009
1 parent 2962462 commit dab2cc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/meta_environment/rascal/ast/ASTStatistics.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ private int comparePrefences(ASTStatistics other) {
}

if (preferred || other.avoided) {
return 1;
return -1;
}

if (avoided || other.preferred) {
return -1;
return 1;
}

return compareInjections(other);
Expand Down

0 comments on commit dab2cc7

Please sign in to comment.