diff options
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 7ff8902640..d066501d02 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); |