This commit is contained in:
Mark Adler
2011-09-09 23:03:14 -07:00
parent 913afb9174
commit 4ca984fb44
21 changed files with 185 additions and 352 deletions

View File

@@ -31,7 +31,7 @@ int r;
q = s->read;
/* compute number of bytes to copy as far as end of window */
n = (q <= s->write ? s->write : s->end) - q;
n = (uInt)((q <= s->write ? s->write : s->end) - q);
if (n > z->avail_out) n = z->avail_out;
if (n && r == Z_BUF_ERROR) r = Z_OK;
@@ -55,7 +55,7 @@ int r;
s->write = s->window;
/* compute bytes to copy */
n = s->write - q;
n = (uInt)(s->write - q);
if (n > z->avail_out) n = z->avail_out;
if (n && r == Z_BUF_ERROR) r = Z_OK;