forked from jasder/antlr
MutableInt's compare method was messed up.
This commit is contained in:
parent
35aeeb7c5c
commit
f4abc84054
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue