fix force53 handling in read64n.

This commit is contained in:
Christopher Jeffrey 2016-05-16 03:53:25 -07:00
parent 58259b6bb6
commit 9a962bb73a
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -1794,6 +1794,9 @@ utils.read64N = function read64N(data, off, force53, be) {
return -(hi * 0x100000000 + lo + 1);
}
if (force53)
hi &= 0x1fffff;
assert((hi & 0xffe00000) === 0, 'Number exceeds 2^53-1');
return hi * 0x100000000 + lo;