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 4ef614e4ca..402378a38d 100644 --- a/stmhal/modusocket.c +++ b/stmhal/modusocket.c @@ -287,7 +287,7 @@ STATIC mp_obj_t socket_setsockopt(mp_uint_t n_args, const mp_obj_t *args) { mp_uint_t optlen; mp_int_t val; if (mp_obj_is_integer(args[3])) { - val = mp_obj_int_get_truncated(args[3]); + val = mp_obj_get_int_truncated(args[3]); optval = &val; optlen = sizeof(val); } else { |