diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-08-17 06:24:12 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-08-17 06:24:12 +0300 |
commit | 244332df9f887ee2743431db80c4685fe6c24a2f (patch) | |
tree | 7bcb8eafffad0c027f1e79a176827f6b127b7f65 | |
parent | a6fc90f92ac0f2275c59cba131f99e541139c3cf (diff) | |
download | micropython-244332df9f887ee2743431db80c4685fe6c24a2f.tar.gz micropython-244332df9f887ee2743431db80c4685fe6c24a2f.zip |
extmod/uzlib/: Update uzlib to v2.0.1.
Fixes for pedantic compiler warnings.
-rw-r--r-- | extmod/uzlib/tinflate.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/extmod/uzlib/tinflate.c b/extmod/uzlib/tinflate.c index 47644bfcb8..0e53f7f072 100644 --- a/extmod/uzlib/tinflate.c +++ b/extmod/uzlib/tinflate.c @@ -35,6 +35,9 @@ #include <assert.h> #include "tinf.h" +uint32_t tinf_get_le_uint32(TINF_DATA *d); +uint32_t tinf_get_be_uint32(TINF_DATA *d); + /* --------------------------------------------------- * * -- uninitialized global data (static structures) -- * * --------------------------------------------------- */ @@ -370,7 +373,7 @@ static int tinf_inflate_block_data(TINF_DATA *d, TINF_TREE *lt, TINF_TREE *dt) /* copy next byte from dict substring */ if (d->dict_ring) { TINF_PUT(d, d->dict_ring[d->lzOff]); - if (++d->lzOff == d->dict_size) { + if ((unsigned)++d->lzOff == d->dict_size) { d->lzOff = 0; } } else { |