Commit a4d1cf37 authored by Benjamin Chelli's avatar Benjamin Chelli

Fix compare on bigint lib/tools/bigint library

parent d463f22b
...@@ -180,7 +180,7 @@ BigInt.prototype.toNumber = function(){ ...@@ -180,7 +180,7 @@ BigInt.prototype.toNumber = function(){
BigInt.prototype.compare = function(v){ BigInt.prototype.compare = function(v){
if(!BigInt.isBigInt(v)) { if(!BigInt.isBigInt(v)) {
v = BigInt.toBigInt(v, this.buffer.length); v = BigInt.toBigInt(this.buffer.length, v);
} }
var n = Math.max(v.buffer.length, this.buffer.length); var n = Math.max(v.buffer.length, this.buffer.length);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment