| Index: pkg/fixnum/lib/src/int64.dart
|
| diff --git a/pkg/fixnum/lib/src/int64.dart b/pkg/fixnum/lib/src/int64.dart
|
| index de3065643760910bd1a2c667177561eb8f629102..603065c19b7beec97e81333a1f6e9f3d7313a34a 100644
|
| --- a/pkg/fixnum/lib/src/int64.dart
|
| +++ b/pkg/fixnum/lib/src/int64.dart
|
| @@ -469,7 +469,9 @@ class Int64 implements IntX {
|
| return false;
|
| }
|
|
|
| - int compareTo(Comparable other) {
|
| + int compareTo(IntX other) =>_compareTo(other);
|
| +
|
| + int _compareTo(other) {
|
| Int64 o = _promote(other);
|
| int signa = _h >> (_BITS2 - 1);
|
| int signb = o._h >> (_BITS2 - 1);
|
| @@ -494,21 +496,10 @@ class Int64 implements IntX {
|
| return 0;
|
| }
|
|
|
| - bool operator <(other) {
|
| - return this.compareTo(other) < 0;
|
| - }
|
| -
|
| - bool operator <=(other) {
|
| - return this.compareTo(other) <= 0;
|
| - }
|
| -
|
| - bool operator >(other) {
|
| - return this.compareTo(other) > 0;
|
| - }
|
| -
|
| - bool operator >=(other) {
|
| - return this.compareTo(other) >= 0;
|
| - }
|
| + bool operator <(other) => _compareTo(other) < 0;
|
| + bool operator <=(other) => _compareTo(other) <= 0;
|
| + bool operator >(other) => this._compareTo(other) > 0;
|
| + bool operator >=(other) => _compareTo(other) >= 0;
|
|
|
| bool get isEven => (_l & 0x1) == 0;
|
| bool get isMaxValue => (_h == _MASK2 >> 1) && _m == _MASK && _l == _MASK;
|
|
|