diff options
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 c97c711f0f..10c7d88c0d 100644 --- a/py/stream.c +++ b/py/stream.c @@ -43,7 +43,7 @@ static mp_obj_t stream_write(mp_obj_t self_in, mp_obj_t arg) { } uint sz; - const byte *buf = mp_obj_str_get_data(arg, &sz); + const char *buf = mp_obj_str_get_data(arg, &sz); int error; machine_int_t out_sz = o->type->stream_p.write(self_in, buf, sz, &error); if (out_sz == -1) { |