summaryrefslogtreecommitdiff
path: root/contrib/minizip/crypt.h
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2021-02-10 15:03:22 -0800
committerMark Adler <madler@alumni.caltech.edu>2021-02-10 15:03:22 -0800
commit0530dbcef992b56b88a6bfd0fd2efa868669d04e (patch)
tree62c07c921c7532bc4ff56803761ec9d84875116e /contrib/minizip/crypt.h
parent506424c6405d0cf7ea7b9c3316516676f259c665 (diff)
downloadzlib-0530dbcef992b56b88a6bfd0fd2efa868669d04e.tar.gz
zlib-0530dbcef992b56b88a6bfd0fd2efa868669d04e.tar.bz2
zlib-0530dbcef992b56b88a6bfd0fd2efa868669d04e.zip
Improve portability of contrib/minizip.
Diffstat (limited to 'contrib/minizip/crypt.h')
-rw-r--r--contrib/minizip/crypt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/minizip/crypt.h b/contrib/minizip/crypt.h
index 1e9e820..131543f 100644
--- a/contrib/minizip/crypt.h
+++ b/contrib/minizip/crypt.h
@@ -38,6 +38,7 @@ static int decrypt_byte(unsigned long* pkeys, const z_crc_t* pcrc_32_tab)
38 * unpredictable manner on 16-bit systems; not a problem 38 * unpredictable manner on 16-bit systems; not a problem
39 * with any known compiler so far, though */ 39 * with any known compiler so far, though */
40 40
41 (void)pcrc_32_tab;
41 temp = ((unsigned)(*(pkeys+2)) & 0xffff) | 2; 42 temp = ((unsigned)(*(pkeys+2)) & 0xffff) | 2;
42 return (int)(((temp * (temp ^ 1)) >> 8) & 0xff); 43 return (int)(((temp * (temp ^ 1)) >> 8) & 0xff);
43} 44}