Skip to content
Snippets Groups Projects
Commit 49dd5321 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

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

Consistently use stdint types. Fixes stmhal build.
parent 64c5a943
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
#define A32_BASE 65521 #define A32_BASE 65521
#define A32_NMAX 5552 #define A32_NMAX 5552
unsigned int uzlib_adler32(const void *data, unsigned int length, unsigned int prev_sum /* 1 */) uint32_t uzlib_adler32(const void *data, unsigned int length, uint32_t prev_sum /* 1 */)
{ {
const unsigned char *buf = (const unsigned char *)data; const unsigned char *buf = (const unsigned char *)data;
......
...@@ -46,7 +46,7 @@ static const unsigned int tinf_crc32tab[16] = { ...@@ -46,7 +46,7 @@ static const unsigned int tinf_crc32tab[16] = {
}; };
/* crc is previous value for incremental computation, 0xffffffff initially */ /* crc is previous value for incremental computation, 0xffffffff initially */
unsigned int uzlib_crc32(const void *data, unsigned int length, unsigned int crc) uint32_t uzlib_crc32(const void *data, unsigned int length, uint32_t crc)
{ {
const unsigned char *buf = (const unsigned char *)data; const unsigned char *buf = (const unsigned char *)data;
unsigned int i; unsigned int i;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment