Index: runtime/lib/integers.dart |
diff --git a/runtime/lib/integers.dart b/runtime/lib/integers.dart |
index 5bee4047dbd11db280680ebdff7e562ee85e1368..7302e19fc0c78e41f479501922d84d25713a0fd9 100644 |
--- a/runtime/lib/integers.dart |
+++ b/runtime/lib/integers.dart |
@@ -297,6 +297,7 @@ class _IntegerImplementation extends _Num { |
if (m is _Bigint) { |
return _toBigint().modInverse(m); |
} |
+ if (this == 0) return 0; |
bool ac = m.isEven; |
int u = m; |
int v = this; |