fixed store int as long
This commit is contained in:
parent
4b0bd16aab
commit
ca5fecef31
@ -102,6 +102,9 @@ TLSerialization.prototype.storeLong = function (sLong, field) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof sLong != 'string') {
|
||||||
|
sLong = sLong ? sLong.toString() : '0';
|
||||||
|
}
|
||||||
var divRem = bigStringInt(sLong).divideAndRemainder(bigint(0x100000000));
|
var divRem = bigStringInt(sLong).divideAndRemainder(bigint(0x100000000));
|
||||||
|
|
||||||
this.writeInt(intToUint(divRem[1].intValue()), (field || '') + ':long[low]');
|
this.writeInt(intToUint(divRem[1].intValue()), (field || '') + ':long[low]');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user