mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-01 09:35:48 +00:00
[BUG] UInt#parse_number should support zero. Add tests.
This commit is contained in:
@@ -234,7 +234,7 @@ UInt.prototype.parse_number = function (j) {
|
||||
|
||||
if ("number" === typeof j &&
|
||||
j === +j &&
|
||||
j > 0) {
|
||||
j >= 0) {
|
||||
// XXX Better, faster way to get BigInteger from JS int?
|
||||
this._value = new BigInteger(""+j);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user