Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
6e99a8c9
Commit
6e99a8c9
authored
Apr 04, 2017
by
Paul Sokolovsky
Browse files
zephyr/modusocket: Be sure to use MP_OBJ_FROM_PTR.
parent
805b1c8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
zephyr/modusocket.c
View file @
6e99a8c9
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment