mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 01:30:32 +00:00
[vm,libs] Strong mode fix to bigint.dart
Change-Id: I5a7f9d750ec3615f2050e7ef56cf406804179139 Reviewed-on: https://dart-review.googlesource.com/25141 Reviewed-by: Vyacheslav Egorov <vegorov@google.com> Commit-Queue: Paul Berry <paulberry@google.com>
This commit is contained in:
parent
7f89be22aa
commit
10ec335464
|
@ -1843,7 +1843,7 @@ class _Bigint extends _IntegerImplementation {
|
|||
if (m == 1) return 0;
|
||||
final mAsBigint = m._toBigint();
|
||||
int t = this;
|
||||
if (t._neg || (t._absCompare(mAsBigint) >= 0)) {
|
||||
if (this._neg || (this._absCompare(mAsBigint) >= 0)) {
|
||||
t %= mAsBigint;
|
||||
t = t._toBigint();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue