]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - zlib/inflate.c
FIX: the check for formatlen was wrong.
[proxmark3-svn] / zlib / inflate.c
index 4e9c07ce5424829aebdb3eb6d9e599d57da734a7..3a945f3ce69168c144dc68e37a9136b20b0b389c 100644 (file)
@@ -1523,7 +1523,8 @@ z_streamp strm;
 {
     struct inflate_state FAR *state;
 
-    if (strm == Z_NULL || strm->state == Z_NULL) return -1L << 16;
+    if (strm == Z_NULL || strm->state == Z_NULL)
+        return (long)(((unsigned long)0 - 1) << 16);
     state = (struct inflate_state FAR *)strm->state;
     return ((long)(state->back) << 16) +
         (state->mode == COPY ? state->length :
Impressum, Datenschutz