diff options
Diffstat (limited to 'unix/socket.c')
-rw-r--r-- | unix/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/socket.c b/unix/socket.c index 6f7954522b..28749f3bef 100644 --- a/unix/socket.c +++ b/unix/socket.c @@ -154,7 +154,7 @@ static mp_obj_t socket_send(uint n_args, const mp_obj_t *args) { } uint sz; - const byte *buf = mp_obj_str_get_data(args[1], &sz); + const char *buf = mp_obj_str_get_data(args[1], &sz); int out_sz = send(self->fd, buf, sz, flags); RAISE_ERRNO(out_sz, errno); |