extmod/uzlib/: Update uzlib to v2.0.1.

Fixes for pedantic compiler warnings.
pull/2326/head
Paul Sokolovsky 2016-08-17 06:24:12 +03:00
rodzic a6fc90f92a
commit 244332df9f
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -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 {