fix big endian 64 bit ints.
This commit is contained in:
parent
29c5203090
commit
a94a2a101d
@ -1523,8 +1523,8 @@ utils.readU64N = function readU64N(data, off, force53, be) {
|
||||
off = off >>> 0;
|
||||
|
||||
if (be) {
|
||||
hi = data.readUInt32LE(off, true);
|
||||
lo = data.readUInt32LE(off + 4, true);
|
||||
hi = data.readUInt32BE(off, true);
|
||||
lo = data.readUInt32BE(off + 4, true);
|
||||
} else {
|
||||
hi = data.readUInt32LE(off + 4, true);
|
||||
lo = data.readUInt32LE(off, true);
|
||||
@ -1566,8 +1566,8 @@ utils.read64N = function read64N(data, off, force53, be) {
|
||||
off = off >>> 0;
|
||||
|
||||
if (be) {
|
||||
hi = data.readUInt32LE(off, true);
|
||||
lo = data.readUInt32LE(off + 4, true);
|
||||
hi = data.readUInt32BE(off, true);
|
||||
lo = data.readUInt32BE(off + 4, true);
|
||||
} else {
|
||||
hi = data.readUInt32LE(off + 4, true);
|
||||
lo = data.readUInt32LE(off, true);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user