Commit a286755a authored by ijliebemij's avatar ijliebemij

fixed size for big files

parent fb35fc83
...@@ -10,7 +10,7 @@ export default function (path, cb) { ...@@ -10,7 +10,7 @@ export default function (path, cb) {
} else { } else {
let fileLength = 0 let fileLength = 0
for (let i = 0; i < file.EndofFile.length; i++) { 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) 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