@@ -198,7 +198,7 @@ class Int64 implements IntX {
198198 }
199199
200200 @override
201- Int64 operator + (other) {
201+ Int64 operator + (Object other) {
202202 Int64 o = _promote (other);
203203 int sum0 = _l + o._l;
204204 int sum1 = _m + o._m + (sum0 >> _BITS );
@@ -207,7 +207,7 @@ class Int64 implements IntX {
207207 }
208208
209209 @override
210- Int64 operator - (other) {
210+ Int64 operator - (Object other) {
211211 Int64 o = _promote (other);
212212 return _sub (_l, _m, _h, o._l, o._m, o._h);
213213 }
@@ -216,7 +216,7 @@ class Int64 implements IntX {
216216 Int64 operator - () => _negate (_l, _m, _h);
217217
218218 @override
219- Int64 operator * (other) {
219+ Int64 operator * (Object other) {
220220 Int64 o = _promote (other);
221221
222222 // Grab 13-bit chunks.
@@ -298,16 +298,16 @@ class Int64 implements IntX {
298298 }
299299
300300 @override
301- Int64 operator % (other) => _divide (this , other, _RETURN_MOD );
301+ Int64 operator % (Object other) => _divide (this , other, _RETURN_MOD );
302302
303303 @override
304- Int64 operator ~ / (other) => _divide (this , other, _RETURN_DIV );
304+ Int64 operator ~ / (Object other) => _divide (this , other, _RETURN_DIV );
305305
306306 @override
307- Int64 remainder (other) => _divide (this , other, _RETURN_REM );
307+ Int64 remainder (Object other) => _divide (this , other, _RETURN_REM );
308308
309309 @override
310- Int64 operator & (other) {
310+ Int64 operator & (Object other) {
311311 Int64 o = _promote (other);
312312 int a0 = _l & o._l;
313313 int a1 = _m & o._m;
@@ -316,7 +316,7 @@ class Int64 implements IntX {
316316 }
317317
318318 @override
319- Int64 operator | (other) {
319+ Int64 operator | (Object other) {
320320 Int64 o = _promote (other);
321321 int a0 = _l | o._l;
322322 int a1 = _m | o._m;
@@ -325,7 +325,7 @@ class Int64 implements IntX {
325325 }
326326
327327 @override
328- Int64 operator ^ (other) {
328+ Int64 operator ^ (Object other) {
329329 Int64 o = _promote (other);
330330 int a0 = _l ^ o._l;
331331 int a1 = _m ^ o._m;
@@ -442,8 +442,8 @@ class Int64 implements IntX {
442442 /// Returns [:true:] if this [Int64] has the same numeric value as the
443443 /// given object. The argument may be an [int] or an [IntX] .
444444 @override
445- bool operator == (other) {
446- Int64 o;
445+ bool operator == (Object other) {
446+ Int64 ? o;
447447 if (other is Int64 ) {
448448 o = other;
449449 } else if (other is int ) {
@@ -462,9 +462,9 @@ class Int64 implements IntX {
462462 }
463463
464464 @override
465- int compareTo (other) => _compareTo (other);
465+ int compareTo (Object other) => _compareTo (other);
466466
467- int _compareTo (other) {
467+ int _compareTo (Object other) {
468468 Int64 o = _promote (other);
469469 int signa = _h >> (_BITS2 - 1 );
470470 int signb = o._h >> (_BITS2 - 1 );
@@ -490,16 +490,16 @@ class Int64 implements IntX {
490490 }
491491
492492 @override
493- bool operator < (other) => _compareTo (other) < 0 ;
493+ bool operator < (Object other) => _compareTo (other) < 0 ;
494494
495495 @override
496- bool operator <= (other) => _compareTo (other) <= 0 ;
496+ bool operator <= (Object other) => _compareTo (other) <= 0 ;
497497
498498 @override
499- bool operator > (other) => _compareTo (other) > 0 ;
499+ bool operator > (Object other) => _compareTo (other) > 0 ;
500500
501501 @override
502- bool operator >= (other) => _compareTo (other) >= 0 ;
502+ bool operator >= (Object other) => _compareTo (other) >= 0 ;
503503
504504 @override
505505 bool get isEven => (_l & 0x1 ) == 0 ;
@@ -549,7 +549,7 @@ class Int64 implements IntX {
549549 }
550550
551551 @override
552- Int64 clamp (lowerLimit, upperLimit) {
552+ Int64 clamp (Object lowerLimit, Object upperLimit) {
553553 Int64 lower = _promote (lowerLimit);
554554 Int64 upper = _promote (upperLimit);
555555 if (this < lower) return lower;
@@ -631,7 +631,7 @@ class Int64 implements IntX {
631631
632632 @override
633633 List <int > toBytes () {
634- List < int > result = List <int >( 8 );
634+ var result = List <int >. filled ( 8 , 0 );
635635 result[0 ] = _l & 0xff ;
636636 result[1 ] = (_l >> 8 ) & 0xff ;
637637 result[2 ] = ((_m << 6 ) & 0xfc ) | ((_l >> 16 ) & 0x3f );
0 commit comments