summaryrefslogtreecommitdiffstats
path: root/compat/zlib
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-06-19 10:27:45 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-06-19 10:27:45 (GMT)
commit0a8c9a817e923652ceea7b0c797e5b15e80e0a77 (patch)
treeae2cc9291f901391aefa5fe55f00f1487b9ad20b /compat/zlib
parent9e628cd450bd345b32f5a0650dfa765256b18d7b (diff)
downloadtcl-0a8c9a817e923652ceea7b0c797e5b15e80e0a77.zip
tcl-0a8c9a817e923652ceea7b0c797e5b15e80e0a77.tar.gz
tcl-0a8c9a817e923652ceea7b0c797e5b15e80e0a77.tar.bz2
sync zlib's crypt.h with version in Tcl 8.7
Diffstat (limited to 'compat/zlib')
-rw-r--r--compat/zlib/contrib/minizip/crypt.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/compat/zlib/contrib/minizip/crypt.h b/compat/zlib/contrib/minizip/crypt.h
index 2c3044b..4da804a 100644
--- a/compat/zlib/contrib/minizip/crypt.h
+++ b/compat/zlib/contrib/minizip/crypt.h
@@ -29,12 +29,6 @@
#define CRC32(c, b) ((*(pcrc_32_tab+(((int)(c) ^ (b)) & 0xff))) ^ ((c) >> 8))
-#ifdef Z_U4
- typedef Z_U4 z_crc_t;
-#else
- typedef unsigned long z_crc_t;
-#endif
-
/***********************************************************************
* Return the next byte in the pseudo-random sequence
*/
@@ -43,6 +37,7 @@ static int decrypt_byte(unsigned long* pkeys, const z_crc_t* pcrc_32_tab)
unsigned temp; /* POTENTIAL BUG: temp*(temp^1) may overflow in an
* unpredictable manner on 16-bit systems; not a problem
* with any known compiler so far, though */
+ (void)pcrc_32_tab;
temp = ((unsigned)(*(pkeys+2)) & 0xffff) | 2;
return (int)(((temp * (temp ^ 1)) >> 8) & 0xff);