summaryrefslogtreecommitdiff
path: root/infback.c
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 /infback.c
parent80d5ed789c3d4c6bbb53c0c5239ba0cb39316d4d (diff)
Replace unsigned short with uint16_t
Conflicts: inflate.h inftrees.c inftrees.h match.c
Diffstat (limited to 'infback.c')
-rw-r--r--infback.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/infback.c b/infback.c
index 290e839..08e77fa 100644
--- a/infback.c
+++ b/infback.c
@@ -249,7 +249,7 @@ int ZEXPORT inflateBack(z_stream *strm, in_func in, void *in_desc,
code last; /* parent table entry */
unsigned len; /* length to copy for repeats, bits to drop */
int ret; /* return code */
- static const unsigned short order[19] = /* permutation of code lengths */
+ static const uint16_t order[19] = /* permutation of code lengths */
{16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15};
/* Check that the strm exists and that the state was initialized */
@@ -360,7 +360,7 @@ int ZEXPORT inflateBack(z_stream *strm, in_func in, void *in_desc,
state->have = 0;
while (state->have < state->ncode) {
NEEDBITS(3);
- state->lens[order[state->have++]] = (unsigned short)BITS(3);
+ state->lens[order[state->have++]] = (uint16_t)BITS(3);
DROPBITS(3);
}
while (state->have < 19)
@@ -422,7 +422,7 @@ int ZEXPORT inflateBack(z_stream *strm, in_func in, void *in_desc,
break;
}
while (copy--)
- state->lens[state->have++] = (unsigned short)len;
+ state->lens[state->have++] = (uint16_t)len;
}
}