Comparing version 0.4.3 to 0.4.4
@@ -331,2 +331,5 @@ function assert(val, msg) { | ||
BN.prototype.neg = function neg() { | ||
if (this.cmpn(0) === 0) | ||
return this.clone(); | ||
var r = this.clone(); | ||
@@ -333,0 +336,0 @@ r.sign = !this.sign; |
{ | ||
"name": "bn.js", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "Big number implementation in pure javascript", | ||
@@ -5,0 +5,0 @@ "main": "lib/bn.js", |
@@ -142,2 +142,4 @@ var assert = require('assert'); | ||
assert.equal(b.div(n).toString(16), n.toString(16)); | ||
assert.equal(new BN('1').div(new BN('-5')).toString(10), '0'); | ||
}); | ||
@@ -144,0 +146,0 @@ |
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
36914
1202