Browse Source

fixed store int as long

master
Igor Zhukov 10 years ago
parent
commit
ca5fecef31
  1. 3
      app/js/lib/tl_utils.js

3
app/js/lib/tl_utils.js

@ -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…
Cancel
Save