Comparing version 0.11.0 to 0.11.1
@@ -1493,6 +1493,8 @@ // Utils | ||
var inv = a._egcd(new BN(1), this.m); | ||
if (inv.sign) | ||
return this.imod(inv.neg()).redNeg(); | ||
else | ||
if (inv.sign) { | ||
inv.sign = false; | ||
return this.imod(inv).redNeg(); | ||
} else { | ||
return this.imod(inv); | ||
} | ||
}; | ||
@@ -1499,0 +1501,0 @@ |
{ | ||
"name": "bn.js", | ||
"version": "0.11.0", | ||
"version": "0.11.1", | ||
"description": "Big number implementation in pure javascript", | ||
@@ -5,0 +5,0 @@ "main": "lib/bn.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54071
1737