@navpreetdevpuri/base-2-n
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -99,6 +99,6 @@ "use strict"; | ||
} | ||
var bothOddFlag = 0; | ||
var bothOddFlag = '\u0000'; | ||
if (this.digits[this.digits.length - 1] % 2 === 1 && | ||
other.digits[other.digits.length - 1] % 2 === 1) { | ||
bothOddFlag = 1; | ||
bothOddFlag = '\u0001'; | ||
} | ||
@@ -105,0 +105,0 @@ var thisHalf = this.half(); |
{ | ||
"name": "@navpreetdevpuri/base-2-n", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "To work with base 2^n numbers", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -118,3 +118,3 @@ class Base2N { | ||
} | ||
let bothOddFlag = 0; | ||
let bothOddFlag = '\u0000'; | ||
if ( | ||
@@ -124,3 +124,3 @@ this.digits[this.digits.length - 1] % 2 === 1 && | ||
) { | ||
bothOddFlag = 1; | ||
bothOddFlag = '\u0001'; | ||
} | ||
@@ -127,0 +127,0 @@ const thisHalf = this.half(); |
12737