]> git.ipfire.org Git - thirdparty/rsync.git/blobdiff - zlib/inflate.c
Avoid a compiler error/warning about shifting a negative value.
[thirdparty/rsync.git] / zlib / inflate.c
index a7555738734b89524a01fc1cc9fe14bfaf6dae28..cea8e7e4ed3357f8ab9312716d9a92c07145854a 100644 (file)
@@ -1525,7 +1525,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 :