8000 py/stream: Fix signed comparison issue. · jensechu/circuitpython@6c3db26 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6c3db26

Browse files
committed
py/stream: Fix signed comparison issue.
1 parent d6236e8 commit 6c3db26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/stream.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ STATIC mp_obj_t stream_ioctl(size_t n_args, const mp_obj_t *args) {
423423
}
424424

425425
int error;
426-
mp_int_t res = stream_p->ioctl(args[0], mp_obj_get_int(args[1]), val, &error);
426+
mp_uint_t res = stream_p->ioctl(args[0], mp_obj_get_int(args[1]), val, &error);
427427
if (res == MP_STREAM_ERROR) {
428428
nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(error)));
429429
}

0 commit comments

Comments
 (0)
0