Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(666)

Unified Diff: runtime/lib/bigint.dart

Issue 1344483003: Fix a typo in Bigint dart implementation of modInverse. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/bigint.dart
diff --git a/runtime/lib/bigint.dart b/runtime/lib/bigint.dart
index a278595175f561f9ca58520a3162aafafb66ebae..ae941b756fdc3682221dc1f54944e5eabe03e0de 100644
--- a/runtime/lib/bigint.dart
+++ b/runtime/lib/bigint.dart
@@ -1745,7 +1745,7 @@ class _Bigint extends _IntegerImplementation implements int {
_absSub(d_digits, abcd_used, b_digits, abcd_used, d_digits);
} else {
_absSub(b_digits, abcd_used, d_digits, abcd_used, d_digits);
- d_neg = !d_neg && (d_cmp_ab != 0);
+ d_neg = !d_neg && (d_cmp_b != 0);
}
} else {
_absAdd(d_digits, abcd_used, b_digits, abcd_used, d_digits);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698