summaryrefslogtreecommitdiff
path: root/inflate.h
diff options
context:
space:
mode:
authorMika Lindqvist <postmaster@raasu.org>2015-05-18 22:11:02 +0300
committerHans Kristian Rosbach <hk-git@circlestorm.org>2015-05-23 22:06:25 +0200
commitedd7a72e056b994458ff040d4740b16b35336b60 (patch)
treea90ab5cada61c33f0dfa600910133d3f6f79cdbf /inflate.h
parent5da387a0a2ebb33320616679d22a5c21e127f423 (diff)
Replace 'unsigned long' with most suitable fixed-size type.
Diffstat (limited to 'inflate.h')
-rw-r--r--inflate.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/inflate.h b/inflate.h
index c6e7ff8..5e640c7 100644
--- a/inflate.h
+++ b/inflate.h
@@ -85,8 +85,8 @@ struct inflate_state {
int havedict; /* true if dictionary provided */
int flags; /* gzip header method and flags (0 if zlib) */
unsigned dmax; /* zlib header max distance (INFLATE_STRICT) */
- unsigned long check; /* protected copy of check value */
- unsigned long total; /* protected copy of output count */
+ size_t check; /* protected copy of check value */
+ size_t total; /* protected copy of output count */
gz_headerp head; /* where to save gzip header information */
/* sliding window */
unsigned wbits; /* log base 2 of requested window size */
@@ -95,7 +95,7 @@ struct inflate_state {
unsigned 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 */