]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Remove workaround for systems where sizeof(int)<=2 (16-bit systems)
authorhansr <hk-git@circlestorm.org>
Fri, 17 Oct 2014 21:38:26 +0000 (23:38 +0200)
committerhansr <hk-git@circlestorm.org>
Fri, 17 Oct 2014 21:38:26 +0000 (23:38 +0200)
deflate.c

index cf957fc46f4cc76dc65347cc2f15b116deb83f42..d64557b4afefc68eb4a29d2331834d02bc9b61c7 100644 (file)
--- 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.
          */