Commit 6e99a8c9 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

zephyr/modusocket: Be sure to use MP_OBJ_FROM_PTR.

parent 805b1c8b
......@@ -172,7 +172,7 @@ STATIC mp_obj_t socket_make_new(const mp_obj_type_t *type, size_t n_args, size_t
RAISE_ERRNO(net_context_get(family, socktype, proto, &socket->ctx));
return socket;
return MP_OBJ_FROM_PTR(socket);
STATIC mp_obj_t socket_bind(mp_obj_t self_in, mp_obj_t addr_in) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment