Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / support / inflate.c
index a8431abeacffd97e5028a9e54135a5f173528960..1eb2902b01d6261706e3ae6b045826da9063d165 100644 (file)
@@ -1472,7 +1472,7 @@ 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 -(1L << 16);
     state = (struct inflate_state FAR *)strm->state;
     return ((long)(state->back) << 16) +
         (state->mode == COPY ? state->length :