Comparing version 1.0.1 to 1.0.2
@@ -10,3 +10,3 @@ 'use strict' | ||
function isBN(x) { | ||
return x && typeof x === 'object' && x.words | ||
return x && typeof x === 'object' && Boolean(x.words) | ||
} |
@@ -17,2 +17,6 @@ 'use strict' | ||
} | ||
if(sdenom < 0) { | ||
numer = numer.neg() | ||
denom = denom.neg() | ||
} | ||
var d = numer.gcd(denom) | ||
@@ -19,0 +23,0 @@ if(d.cmpn(1)) { |
{ | ||
"name": "big-rat", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A big integer rational number", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -6,3 +6,3 @@ 'use strict' | ||
function recip(f) { | ||
return [f[1], f[0]] | ||
return [f[1].clone(), f[0].clone()] | ||
} |
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
19806
640