summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-09-03 00:34:57 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-09-03 00:34:57 +0300
commitf7c461152364650b71231387c3f80b37277c9161 (patch)
tree362abdf966d36334d3002589e64310a2fbd8f751
parentfafd587514ece8ee394b9587c1494e35ec2634fb (diff)
downloadmicropython-f7c461152364650b71231387c3f80b37277c9161.tar.gz
micropython-f7c461152364650b71231387c3f80b37277c9161.zip
extmod/moduzlib: Use mperrno.h for error constants.
-rw-r--r--extmod/moduzlib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/extmod/moduzlib.c b/extmod/moduzlib.c
index 7fc655fdaf..dbf513527a 100644
--- a/extmod/moduzlib.c
+++ b/extmod/moduzlib.c
@@ -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;