File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import 'int32.dart';
66import 'int64.dart' ;
77
88/// A fixed-precision integer.
9- abstract class IntX implements Comparable <Object > {
9+ abstract class IntX implements Comparable <IntX > {
1010 /// Addition operator.
1111 IntX operator + (Object other);
1212
Original file line number Diff line number Diff line change @@ -16,12 +16,12 @@ int validateRadix(int radix) =>
1616/// not a valid digit in any radix in the range 2 through 36.
1717int decodeDigit (int c) {
1818 // Hex digit char codes
19- const int c0 = 48 ; // '0'.codeUnitAt(0)
20- const int ca = 97 ; // 'a'.codeUnitAt(0)
19+ const c0 = 48 ; // '0'.codeUnitAt(0)
20+ const ca = 97 ; // 'a'.codeUnitAt(0)
2121
22- int digit = c ^ c0;
22+ var digit = c ^ c0;
2323 if (digit < 10 ) return digit;
24- int letter = (c | 0x20 ) - ca;
24+ var letter = (c | 0x20 ) - ca;
2525 if (letter >= 0 ) {
2626 // Returns values above 36 for invalid digits.
2727 // The value is checked against the actual radix where the return
You can’t perform that action at this time.
0 commit comments