Skip to content

Commit 244332d

Browse files
committed
extmod/uzlib/: Update uzlib to v2.0.1.
Fixes for pedantic compiler warnings.
1 parent a6fc90f commit 244332d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

extmod/uzlib/tinflate.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
#include <assert.h>
3636
#include "tinf.h"
3737

38+
uint32_t tinf_get_le_uint32(TINF_DATA *d);
39+
uint32_t tinf_get_be_uint32(TINF_DATA *d);
40+
3841
/* --------------------------------------------------- *
3942
* -- uninitialized global data (static structures) -- *
4043
* --------------------------------------------------- */
@@ -370,7 +373,7 @@ static int tinf_inflate_block_data(TINF_DATA *d, TINF_TREE *lt, TINF_TREE *dt)
370373
/* copy next byte from dict substring */
371374
if (d->dict_ring) {
372375
TINF_PUT(d, d->dict_ring[d->lzOff]);
373-
if (++d->lzOff == d->dict_size) {
376+
if ((unsigned)++d->lzOff == d->dict_size) {
374377
d->lzOff = 0;
375378
}
376379
} else {

0 commit comments

Comments
 (0)