summaryrefslogtreecommitdiff
path: root/inftrees.h
diff options
context:
space:
mode:
authorHans Kristian Rosbach <hk-git@circlestorm.org>2015-05-16 21:23:07 +0200
committerMika Lindqvist <postmaster@raasu.org>2015-05-22 22:15:29 +0300
commit62c6d5ec70f0426f19dfb75a3b48f1b80094ee70 (patch)
tree42de328db0572a82a43fcc5f0efc9dbc5c20a0c0 /inftrees.h
parent80d5ed789c3d4c6bbb53c0c5239ba0cb39316d4d (diff)
Replace unsigned short with uint16_t
Conflicts: inflate.h inftrees.c inftrees.h match.c
Diffstat (limited to 'inftrees.h')
-rw-r--r--inftrees.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/inftrees.h b/inftrees.h
index a568d40..f266235 100644
--- a/inftrees.h
+++ b/inftrees.h
@@ -22,9 +22,9 @@
of a literal, the base length or distance, or the offset from
the current table to the next table. Each entry is four bytes. */
typedef struct {
- unsigned char op; /* operation, extra bits, table bits */
- unsigned char bits; /* bits in this part of the code */
- unsigned short val; /* offset in table or code value */
+ unsigned char op; /* operation, extra bits, table bits */
+ unsigned char bits; /* bits in this part of the code */
+ uint16_t val; /* offset in table or code value */
} code;
/* op values as set by inflate_table():
@@ -57,6 +57,5 @@ typedef enum {
DISTS
} codetype;
-int ZLIB_INTERNAL inflate_table (codetype type, unsigned short *lens,
- unsigned codes, code * *table,
- unsigned *bits, unsigned short *work);
+int ZLIB_INTERNAL inflate_table (codetype type, uint16_t *lens, unsigned codes,
+ code * *table, unsigned *bits, uint16_t *work);