Skip to content

Commit d92edbd

Browse files
committed
Revert more changes
1 parent 8bfaa9d commit d92edbd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pkgs/fixnum/lib/src/intx.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import 'int32.dart';
66
import '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

pkgs/fixnum/lib/src/utilities.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ int validateRadix(int radix) =>
1616
/// not a valid digit in any radix in the range 2 through 36.
1717
int 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

0 commit comments

Comments
 (0)