Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: Nguyen Van Nguyen <[email protected]>
  • Loading branch information
nguyennv committed Mar 23, 2023
1 parent 987cbf7 commit 2898627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/crypto/math/big_int.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ extension BigIntExt on BigInt {
return Uint8List.fromList([0]);
}
final byteMask = BigInt.from(0xff);
final size = bitLength + (isNegative ? 8 : 7) >> 3;
final size = (bitLength + (isNegative ? 8 : 7)) >> 3;
var result = Uint8List(size);
var number = this;
for (var i = 0; i < size; i++) {
Expand Down

0 comments on commit 2898627

Please sign in to comment.