mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-09-15 06:41:28 -04:00
Avoid a compiler error/warning about shifting a negative value.
Fixes bug #13268.
This commit is contained in:
1 parent
5df9847f06
commit
eec6ab7615
2 files changed
+3
-2
No files matched your search
@@ -4,7 +4,8 @@ Changes since 3.1.3:
|
||||
|
||||
BUG FIXES:
|
||||
|
||||
- ...
|
||||
- Fix a compiler error/warning about shifting a negative value (in the zlib
|
||||
code).
|
||||
|
||||
ENHANCEMENTS:
|
||||
|
||||
|
||||
+1
-1
@@ -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 :
|
||||
|
||||
Reference in new issue
Block a user