Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
02894b51
Commit
02894b51
authored
Mar 19, 2015
by
Paul Sokolovsky
Browse files
extmod: Update uzlib to 1.2.1.
Fixes for compiler warnings in pedantic mode.
parent
d7194f1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
extmod/uzlib/tinf.h
View file @
02894b51
...
...
@@ -76,7 +76,7 @@ int TINFCC tinf_zlib_uncompress_dyn(TINF_DATA *d, unsigned int sourceLen);
/* high-level API */
void
TINFCC
tinf_init
();
void
TINFCC
tinf_init
(
void
);
int
TINFCC
tinf_uncompress
(
void
*
dest
,
unsigned
int
*
destLen
,
const
void
*
source
,
unsigned
int
sourceLen
);
...
...
extmod/uzlib/tinflate.c
View file @
02894b51
...
...
@@ -341,8 +341,8 @@ static int tinf_inflate_block_data(TINF_DATA *d, TINF_TREE *lt, TINF_TREE *dt)
}
else
{
int
length
,
dist
,
offs
;
int
i
;
unsigned
int
length
,
offs
,
i
;
int
dist
;
sym
-=
257
;
...
...
@@ -363,7 +363,7 @@ static int tinf_inflate_block_data(TINF_DATA *d, TINF_TREE *lt, TINF_TREE *dt)
/* copy match */
for
(
i
=
0
;
i
<
length
;
++
i
)
{
d
->
dest
[
i
]
=
d
->
dest
[
i
-
offs
];
d
->
dest
[
i
]
=
d
->
dest
[
(
int
)(
i
-
offs
)
];
}
d
->
dest
+=
length
;
...
...
@@ -432,7 +432,7 @@ static int tinf_inflate_dynamic_block(TINF_DATA *d)
* ---------------------- */
/* initialize global (static) data */
void
tinf_init
()
void
tinf_init
(
void
)
{
#ifdef RUNTIME_BITS_TABLES
/* build extra bits and base tables */
...
...
@@ -449,6 +449,7 @@ void tinf_init()
int
tinf_uncompress
(
void
*
dest
,
unsigned
int
*
destLen
,
const
void
*
source
,
unsigned
int
sourceLen
)
{
(
void
)
sourceLen
;
TINF_DATA
d
;
int
res
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment