Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
f7c46115
Commit
f7c46115
authored
Sep 03, 2016
by
Paul Sokolovsky
Browse files
extmod/moduzlib: Use mperrno.h for error constants.
parent
fafd5875
Changes
1
Hide whitespace changes
Inline
Side-by-side
extmod/moduzlib.c
View file @
f7c46115
...
...
@@ -30,6 +30,7 @@
#include
"py/nlr.h"
#include
"py/runtime.h"
#include
"py/stream.h"
#include
"py/mperrno.h"
#if MICROPY_PY_UZLIB
...
...
@@ -93,7 +94,7 @@ STATIC mp_uint_t decompio_read(mp_obj_t o_in, void *buf, mp_uint_t size, int *er
o
->
eof
=
true
;
}
if
(
st
<
0
)
{
*
errcode
=
EINVAL
;
*
errcode
=
MP_
EINVAL
;
return
MP_STREAM_ERROR
;
}
return
o
->
decomp
.
dest
-
(
byte
*
)
buf
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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