浏览代码

Update zip.js

Lutz Roeder 1 月之前
父节点
当前提交
07b85c824b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      source/zip.js

+ 1 - 1
source/zip.js

@@ -58,7 +58,7 @@ zip.Archive = class {
                     return null;
                 };
                 const read = (signature, size) => {
-                    if ((stream.position - size) > 0) {
+                    if ((stream.position - size) >= 0) {
                         stream.skip(-size);
                         signature = Array.from(signature, (c) => c.charCodeAt(0));
                         const buffer = stream.peek(size);