Commit 8803ce3d authored by Nicolas Raynaud's avatar Nicolas Raynaud Committed by GitHub

Merge pull request #1 from vdiez/fix_big_files

Fix big files
parents 0f1fcb5b 9d84637f
......@@ -10,7 +10,7 @@ export default function (path, cb) {
} else {
let fileLength = 0
for (let i = 0; i < file.EndofFile.length; i++) {
fileLength |= file.EndofFile[i] << (i * 8)
fileLength += file.EndofFile[i] * Math.pow(2, i * 8)
}
cb(null, fileLength)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment