diff options
Diffstat (limited to 'archival/libunarchive/decompress_unzip.c')
-rw-r--r-- | archival/libunarchive/decompress_unzip.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/archival/libunarchive/decompress_unzip.c b/archival/libunarchive/decompress_unzip.c index 20fda9d26..cb8a3d737 100644 --- a/archival/libunarchive/decompress_unzip.c +++ b/archival/libunarchive/decompress_unzip.c | |||
@@ -925,10 +925,7 @@ static int inflate_block(STATE_PARAM smallint *e) | |||
925 | /* Two callsites, both in inflate_get_next_window */ | 925 | /* Two callsites, both in inflate_get_next_window */ |
926 | static void calculate_gunzip_crc(STATE_PARAM_ONLY) | 926 | static void calculate_gunzip_crc(STATE_PARAM_ONLY) |
927 | { | 927 | { |
928 | unsigned n; | 928 | gunzip_crc = crc32_block_endian0(gunzip_crc, gunzip_window, gunzip_outbuf_count, gunzip_crc_table); |
929 | for (n = 0; n < gunzip_outbuf_count; n++) { | ||
930 | gunzip_crc = gunzip_crc_table[((int) gunzip_crc ^ (gunzip_window[n])) & 0xff] ^ (gunzip_crc >> 8); | ||
931 | } | ||
932 | gunzip_bytes_out += gunzip_outbuf_count; | 929 | gunzip_bytes_out += gunzip_outbuf_count; |
933 | } | 930 | } |
934 | 931 | ||