MutableInt's compare method was messed up.

This commit is contained in:
Terence Parr 2012-04-10 10:51:51 -07:00
parent 35aeeb7c5c
commit f4abc84054
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ public class MutableInt extends Number implements Comparable<Number> {
public int v;
public MutableInt(int v) { this.v = v; }
@Override public int compareTo(Number o) { return v; }
@Override public int compareTo(Number o) { return v-o.intValue(); }
@Override public int intValue() { return v; }
@Override public long longValue() { return v; }
@Override public float floatValue() { return v; }