Ver Fonte

Update zip.js

Lutz Roeder há 1 mês atrás
pai
commit
07b85c824b
1 ficheiros alterados com 1 adições e 1 exclusões
  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);