summaryrefslogtreecommitdiff
path: root/inflate.h
diff options
context:
space:
mode:
authorMika Lindqvist <postmaster@raasu.org>2015-12-14 10:11:39 +0200
committerMika Lindqvist <postmaster@raasu.org>2015-12-14 11:00:22 +0200
commit9c3a28087793a922367f1f5d6a8ffea9a9b14fd5 (patch)
tree9ace9c59c235da0d7c0e56813b53df206277e2ec /inflate.h
parente478ddb4639fb28f1baba83930d780a9dc5aae53 (diff)
Type cleanup.
Diffstat (limited to 'inflate.h')
-rw-r--r--inflate.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/inflate.h b/inflate.h
index 9cb7f06..2bf129d 100644
--- a/inflate.h
+++ b/inflate.h
@@ -93,28 +93,28 @@ struct inflate_state {
gz_headerp head; /* where to save gzip header information */
/* sliding window */
unsigned wbits; /* log base 2 of requested window size */
- unsigned wsize; /* window size or zero if not using window */
- unsigned whave; /* valid bytes in the window */
- unsigned wnext; /* window write index */
- unsigned char *window; /* allocated sliding window, if needed */
+ uint32_t wsize; /* window size or zero if not using window */
+ uint32_t whave; /* valid bytes in the window */
+ uint32_t wnext; /* window write index */
+ unsigned char *window; /* allocated sliding window, if needed */
/* bit accumulator */
- unsigned long hold; /* input bit accumulator */
+ uint32_t hold; /* input bit accumulator */
unsigned bits; /* number of bits in "in" */
/* for string and stored block copying */
- unsigned length; /* literal or length of data to copy */
+ uint32_t length; /* literal or length of data to copy */
unsigned offset; /* distance back to copy string from */
/* for table and code decoding */
unsigned extra; /* extra bits needed */
/* fixed and dynamic code tables */
- code const *lencode; /* starting table for length/literal codes */
- code const *distcode; /* starting table for distance codes */
+ code const *lencode; /* starting table for length/literal codes */
+ code const *distcode; /* starting table for distance codes */
unsigned lenbits; /* index bits for lencode */
unsigned distbits; /* index bits for distcode */
/* dynamic table building */
unsigned ncode; /* number of code length code lengths */
unsigned nlen; /* number of length code lengths */
unsigned ndist; /* number of distance code lengths */
- unsigned have; /* number of code lengths in lens[] */
+ uint32_t have; /* number of code lengths in lens[] */
code *next; /* next available space in codes[] */
uint16_t lens[320]; /* temporary storage for code lengths */
uint16_t work[288]; /* work area for code table building */