diff options
| author | Damien George | 2017-03-26 17:35:12 +1100 |
|---|---|---|
| committer | Damien George | 2017-03-29 12:56:45 +1100 |
| commit | a9c8db07bd447e7e014203abe0c32d3ecf20503c (patch) | |
| tree | 7b61d43c43cb5f2bcd8f5df616ed7d1c465e4be3 /stmhal/modusocket.c | |
| parent | 3022e00bbf2f6b602960da90aec23229e142e141 (diff) | |
stmhal: Update for changes to mp_obj_str_get_data.
Diffstat (limited to 'stmhal/modusocket.c')
| -rw-r--r-- | stmhal/modusocket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/modusocket.c b/stmhal/modusocket.c index 7ff890264..d066501d0 100644 --- a/stmhal/modusocket.c +++ b/stmhal/modusocket.c @@ -388,7 +388,7 @@ STATIC const mp_obj_type_t socket_type = { // function usocket.getaddrinfo(host, port) STATIC mp_obj_t mod_usocket_getaddrinfo(mp_obj_t host_in, mp_obj_t port_in) { - mp_uint_t hlen; + size_t hlen; const char *host = mp_obj_str_get_data(host_in, &hlen); mp_int_t port = mp_obj_get_int(port_in); |
