Change int to uint for n_args in function with variable arguments.
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
static mp_obj_t stream_readall(mp_obj_t self_in);
|
||||
|
||||
static mp_obj_t stream_read(int n_args, const mp_obj_t *args) {
|
||||
static mp_obj_t stream_read(uint n_args, const mp_obj_t *args) {
|
||||
struct _mp_obj_base_t *o = (struct _mp_obj_base_t *)args[0];
|
||||
if (o->type->stream_p.read == NULL) {
|
||||
// CPython: io.UnsupportedOperation, OSError subclass
|
||||
@@ -99,7 +99,7 @@ static mp_obj_t stream_readall(mp_obj_t self_in) {
|
||||
}
|
||||
|
||||
// Unbuffered, inefficient implementation of readline() for raw I/O files.
|
||||
static mp_obj_t stream_unbuffered_readline(int n_args, const mp_obj_t *args) {
|
||||
static mp_obj_t stream_unbuffered_readline(uint n_args, const mp_obj_t *args) {
|
||||
struct _mp_obj_base_t *o = (struct _mp_obj_base_t *)args[0];
|
||||
if (o->type->stream_p.read == NULL) {
|
||||
// CPython: io.UnsupportedOperation, OSError subclass
|
||||
|
||||
Reference in New Issue
Block a user