Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkgs/fixnum/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
like `sortedBy` in the platform libraries.
* Run `dart format` with the new style.
* Require Dart 3.4
* Improve `Int64` representation when compiling to native or Wasm.

## 1.1.1

Expand Down
4 changes: 2 additions & 2 deletions pkgs/fixnum/lib/fixnum.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

/// Signed 32- and 64-bit integer support.
///
/// The integer implementations in this library are designed to work
/// identically whether executed on the Dart VM or compiled to JavaScript.
/// The integer implementations in this library are designed to work identically
/// whether executed on the Dart VM or compiled to JavaScript or Wasm.
library;

export 'src/int32.dart';
Expand Down
8 changes: 3 additions & 5 deletions pkgs/fixnum/lib/src/int32.dart
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,6 @@ class Int32 implements IntX {
return Int32(value);
}

/// Returns [:true:] if this [Int32] has the same numeric value as the
/// given object. The argument may be an [int] or an [IntX].
@override
bool operator ==(Object other) {
if (other is Int32) {
Expand Down Expand Up @@ -437,10 +435,10 @@ class Int32 implements IntX {
@override
List<int> toBytes() {
var result = List<int>.filled(4, 0);
result[0] = _i & 0xff;
result[1] = (_i >> 8) & 0xff;
result[2] = (_i >> 16) & 0xff;
result[3] = (_i >> 24) & 0xff;
result[2] = (_i >> 16) & 0xff;
result[1] = (_i >> 8) & 0xff;
result[0] = _i & 0xff;
return result;
}

Expand Down
Loading