summaryrefslogtreecommitdiff
path: root/infback.c
diff options
context:
space:
mode:
authorHans Kristian Rosbach <hk-git@circlestorm.org>2015-06-05 18:34:42 +0200
committerHans Kristian Rosbach <hk-git@circlestorm.org>2015-06-05 18:35:25 +0200
commit814535421783abb5d5f95073f528bbf434f192bc (patch)
tree5e999fb701b534c509dfc32047b3bef0c32e84ba /infback.c
parent4d2c00852d3d6629c3162602b083f9b462153473 (diff)
Revert "Replace 'unsigned long' with most suitable fixed-size type."
This commit was cherry-picked and was not done, resulting in a few problems with gcc on 64bit windows. This reverts commit edd7a72e056b994458ff040d4740b16b35336b60. Conflicts: arch/x86/crc_folding.c arch/x86/fill_window_sse.c deflate.c deflate.h match.c trees.c
Diffstat (limited to 'infback.c')
-rw-r--r--infback.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/infback.c b/infback.c
index ce5431a..e32e63a 100644
--- a/infback.c
+++ b/infback.c
@@ -156,7 +156,7 @@ local void fixedtables(struct inflate_state *state) {
do { \
PULL(); \
have--; \
- hold += (uint32_t)(*next++) << bits; \
+ hold += (unsigned long)(*next++) << bits; \
bits += 8; \
} while (0)
@@ -232,13 +232,13 @@ local void fixedtables(struct inflate_state *state) {
*/
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 */
- uint32_t hold; /* bit buffer */
+ unsigned long 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 */