From: hansr Date: Fri, 17 Oct 2014 21:38:26 +0000 (+0200) Subject: Remove workaround for systems where sizeof(int)<=2 (16-bit systems) X-Git-Tag: 1.9.9-b1~904 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de4fe1be2b673051e4773e6d86d7331f6cb14b01;p=thirdparty%2Fzlib-ng.git Remove workaround for systems where sizeof(int)<=2 (16-bit systems) --- diff --git a/deflate.c b/deflate.c index cf957fc46..d64557b4a 100644 --- a/deflate.c +++ b/deflate.c @@ -1255,19 +1255,6 @@ local void fill_window_c(s) do { more = (unsigned)(s->window_size -(ulg)s->lookahead -(ulg)s->strstart); - /* Deal with !@#$% 64K limit: */ - if (sizeof(int) <= 2) { - if (more == 0 && s->strstart == 0 && s->lookahead == 0) { - more = wsize; - - } else if (more == (unsigned)(-1)) { - /* Very unlikely, but possible on 16 bit machine if - * strstart == 0 && lookahead == 1 (input done a byte at time) - */ - more--; - } - } - /* If the window is almost full and there is insufficient lookahead, * move the upper half to the lower one to make room in the upper half. */