Explorar el Código

Update zip.js

Lutz Roeder hace 1 mes
padre
commit
07b85c824b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);