Skip to content

Commit

Permalink
Remove legacy 16-bit workarounds
Browse files Browse the repository at this point in the history
  • Loading branch information
Dead2 committed Oct 9, 2014
1 parent dab4c0e commit 279e637
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 22 deletions.
4 changes: 0 additions & 4 deletions compress.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ int ZEXPORT compress2 (dest, destLen, source, sourceLen, level)

stream.next_in = (z_const Bytef *)source;
stream.avail_in = (uInt)sourceLen;
#ifdef MAXSEG_64K
/* Check for source > 64K on 16-bit machine: */
if ((uLong)stream.avail_in != sourceLen) return Z_BUF_ERROR;
#endif
stream.next_out = dest;
stream.avail_out = (uInt)*destLen;
if ((uLong)stream.avail_out != *destLen) return Z_BUF_ERROR;
Expand Down
3 changes: 0 additions & 3 deletions uncompr.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ int ZEXPORT uncompress (dest, destLen, source, sourceLen)

stream.next_in = (z_const Bytef *)source;
stream.avail_in = (uInt)sourceLen;
/* Check for source > 64K on 16-bit machine: */
if ((uLong)stream.avail_in != sourceLen) return Z_BUF_ERROR;

stream.next_out = dest;
stream.avail_out = (uInt)*destLen;
if ((uLong)stream.avail_out != *destLen) return Z_BUF_ERROR;
Expand Down
6 changes: 1 addition & 5 deletions zconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,7 @@

/* Maximum value for memLevel in deflateInit2 */
#ifndef MAX_MEM_LEVEL
# ifdef MAXSEG_64K
# define MAX_MEM_LEVEL 8
# else
# define MAX_MEM_LEVEL 9
# endif
# define MAX_MEM_LEVEL 9
#endif

/* Maximum value for windowBits in deflateInit2 and inflateInit2.
Expand Down
6 changes: 1 addition & 5 deletions zconf.h.cmakein
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,7 @@

/* Maximum value for memLevel in deflateInit2 */
#ifndef MAX_MEM_LEVEL
# ifdef MAXSEG_64K
# define MAX_MEM_LEVEL 8
# else
# define MAX_MEM_LEVEL 9
# endif
# define MAX_MEM_LEVEL 9
#endif

/* Maximum value for windowBits in deflateInit2 and inflateInit2.
Expand Down
6 changes: 1 addition & 5 deletions zconf.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,7 @@

/* Maximum value for memLevel in deflateInit2 */
#ifndef MAX_MEM_LEVEL
# ifdef MAXSEG_64K
# define MAX_MEM_LEVEL 8
# else
# define MAX_MEM_LEVEL 9
# endif
# define MAX_MEM_LEVEL 9
#endif

/* Maximum value for windowBits in deflateInit2 and inflateInit2.
Expand Down

0 comments on commit 279e637

Please sign in to comment.