commit | 6c3db26ab7e03fa0140fb8d3ed315e69717b59ca | [log] [tgz] |
---|---|---|
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | Sun Apr 10 13:31:52 2016 +0300 |
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | Sun Apr 10 13:31:52 2016 +0300 |
tree | 3b014bb5e36ff39a71fbb8149bd111a417728202 | |
parent | d6236e85c2ef443fbb547b63b746f49d2f94cbf9 [diff] [blame] |
py/stream: Fix signed comparison issue.
diff --git a/py/stream.c b/py/stream.c index 4fda97c..fcdd6be 100644 --- a/py/stream.c +++ b/py/stream.c
@@ -423,7 +423,7 @@ } int error; - mp_int_t res = stream_p->ioctl(args[0], mp_obj_get_int(args[1]), val, &error); + mp_uint_t res = stream_p->ioctl(args[0], mp_obj_get_int(args[1]), val, &error); if (res == MP_STREAM_ERROR) { nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(error))); }