From 698ec21e46564ff0c2c71bf11d7eb4ef349c88d9 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 8 Feb 2014 18:17:23 +0000 Subject: Make mp_obj_str_get_data return char* instead of byte*. Can't decide which is better for string type, char or byte pointer. Changing to char removes a few casts. Really need to do proper unicode. --- unix/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unix/socket.c') diff --git a/unix/socket.c b/unix/socket.c index 6f7954522..28749f3be 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); -- cgit v1.2.3