diff options
author | Mika Lindqvist <postmaster@raasu.org> | 2015-05-18 22:11:02 +0300 |
---|---|---|
committer | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2015-05-23 22:06:25 +0200 |
commit | edd7a72e056b994458ff040d4740b16b35336b60 (patch) | |
tree | a90ab5cada61c33f0dfa600910133d3f6f79cdbf /infback.c | |
parent | 5da387a0a2ebb33320616679d22a5c21e127f423 (diff) |
Replace 'unsigned long' with most suitable fixed-size type.
Diffstat (limited to 'infback.c')
-rw-r--r-- | infback.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -160,7 +160,7 @@ local void fixedtables(struct inflate_state *state) do { \ PULL(); \ have--; \ - hold += (unsigned long)(*next++) << bits; \ + hold += (uint32_t)(*next++) << bits; \ bits += 8; \ } while (0) @@ -238,13 +238,13 @@ int ZEXPORT inflateBack(z_stream *strm, in_func in, void *in_desc, out_func out, void *out_desc) { struct inflate_state *state; - const unsigned char *next; /* next input */ - unsigned char *put; /* next output */ + const unsigned char *next; /* next input */ + unsigned char *put; /* next output */ unsigned have, left; /* available input and output */ - unsigned long hold; /* bit buffer */ + uint32_t hold; /* bit buffer */ unsigned bits; /* bits in bit buffer */ unsigned copy; /* number of stored or match bytes to copy */ - unsigned char *from; /* where to copy match bytes from */ + unsigned char *from; /* where to copy match bytes from */ code here; /* current decoding table entry */ code last; /* parent table entry */ unsigned len; /* length to copy for repeats, bits to drop */ |