diff options
author | Damien George <damien.p.george@gmail.com> | 2015-11-27 12:19:25 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-11-29 14:25:04 +0000 |
commit | 4e7107a572b55321f3f483f0293dd19b4f752c9b (patch) | |
tree | 5cd4068be944446d225fac50688555128f736a38 /py/stream.c | |
parent | fad7d9317b47330533ee6c84ffdaa3e53ad76e46 (diff) | |
download | micropython-4e7107a572b55321f3f483f0293dd19b4f752c9b.tar.gz micropython-4e7107a572b55321f3f483f0293dd19b4f752c9b.zip |
py: Change mp_print_strn_t func type to use size_t for the str length.
Diffstat (limited to 'py/stream.c')
-rw-r--r-- | py/stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/stream.c b/py/stream.c index 6be2c4f3eb..5c161ec2dc 100644 --- a/py/stream.c +++ b/py/stream.c @@ -174,7 +174,7 @@ STATIC mp_obj_t stream_read(mp_uint_t n_args, const mp_obj_t *args) { } } -mp_obj_t mp_stream_write(mp_obj_t self_in, const void *buf, mp_uint_t len) { +mp_obj_t mp_stream_write(mp_obj_t self_in, const void *buf, size_t len) { struct _mp_obj_base_t *o = (struct _mp_obj_base_t *)self_in; if (o->type->stream_p == NULL || o->type->stream_p->write == NULL) { // CPython: io.UnsupportedOperation, OSError subclass |