fix force53 handling in read64n.
This commit is contained in:
parent
58259b6bb6
commit
9a962bb73a
@ -1794,6 +1794,9 @@ utils.read64N = function read64N(data, off, force53, be) {
|
|||||||
return -(hi * 0x100000000 + lo + 1);
|
return -(hi * 0x100000000 + lo + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (force53)
|
||||||
|
hi &= 0x1fffff;
|
||||||
|
|
||||||
assert((hi & 0xffe00000) === 0, 'Number exceeds 2^53-1');
|
assert((hi & 0xffe00000) === 0, 'Number exceeds 2^53-1');
|
||||||
|
|
||||||
return hi * 0x100000000 + lo;
|
return hi * 0x100000000 + lo;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user