From 11aa91615ec21229742fb4551e4610f83d61eec7 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 30 Oct 2014 15:28:15 +0000 Subject: stmhal: Fix ptr arith in CC3000 code; enable network build in travis. --- stmhal/modcc3k.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stmhal') diff --git a/stmhal/modcc3k.c b/stmhal/modcc3k.c index ab7ff1928..7c35e76f6 100644 --- a/stmhal/modcc3k.c +++ b/stmhal/modcc3k.c @@ -381,7 +381,7 @@ STATIC mp_obj_t cc3k_socket_send(mp_obj_t self_in, mp_obj_t buf_in) { mp_int_t bytes = 0; while (bytes < bufinfo.len) { int n = MIN((bufinfo.len - bytes), MAX_TX_PACKET); - n = CC3000_EXPORT(send)(self->fd, bufinfo.buf + bytes, n, 0); + n = CC3000_EXPORT(send)(self->fd, (uint8_t*)bufinfo.buf + bytes, n, 0); if (n <= 0) { nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(CC3000_EXPORT(errno)))); } -- cgit v1.2.3