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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy