diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2019-10-20 19:07:06 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2019-10-20 19:07:06 +0200 |
commit | fb1103595f0562f98505882150fed384dea72f39 (patch) | |
tree | 4b927a7ee92d95fb571c2b911e894c97393697ea | |
parent | 6572ef6e1e4822f785b7139ef166586c444dc01e (diff) | |
download | busybox-w32-fb1103595f0562f98505882150fed384dea72f39.tar.gz busybox-w32-fb1103595f0562f98505882150fed384dea72f39.tar.bz2 busybox-w32-fb1103595f0562f98505882150fed384dea72f39.zip |
gunzip: code shrink by using int-, not short-sized struct member
function old new delta
inflate_block 1254 1253 -1
inflate_codes 629 621 -8
huft_build 1054 1008 -46
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-55) Total: -55 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | archival/libarchive/decompress_gunzip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/archival/libarchive/decompress_gunzip.c b/archival/libarchive/decompress_gunzip.c index 530661e15..0f8173d0a 100644 --- a/archival/libarchive/decompress_gunzip.c +++ b/archival/libarchive/decompress_gunzip.c | |||
@@ -39,7 +39,8 @@ typedef struct huft_t { | |||
39 | unsigned char e; /* number of extra bits or operation */ | 39 | unsigned char e; /* number of extra bits or operation */ |
40 | unsigned char b; /* number of bits in this code or subcode */ | 40 | unsigned char b; /* number of bits in this code or subcode */ |
41 | union { | 41 | union { |
42 | unsigned short n; /* literal, length base, or distance base */ | 42 | unsigned n; /* literal, length base, or distance base */ |
43 | /* ^^^^^ was "unsigned short", but that results in larger code */ | ||
43 | struct huft_t *t; /* pointer to next level of table */ | 44 | struct huft_t *t; /* pointer to next level of table */ |
44 | } v; | 45 | } v; |
45 | } huft_t; | 46 | } huft_t; |