fix big endian 64 bit ints.

This commit is contained in:
Christopher Jeffrey 2016-05-19 19:32:08 -07:00
parent 29c5203090
commit a94a2a101d
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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);