Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
5efd6508
Commit
5efd6508
authored
Dec 31, 2016
by
Paul Sokolovsky
Browse files
unix/moduselect: Fix nanbox build with recent changes.
parent
093a8f5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
unix/moduselect.c
View file @
5efd6508
...
...
@@ -134,7 +134,7 @@ STATIC mp_obj_t poll_unregister(mp_obj_t self_in, mp_obj_t obj_in) {
if
(
entries
->
fd
==
fd
)
{
entries
->
fd
=
-
1
;
if
(
self
->
obj_map
)
{
self
->
obj_map
[
entries
-
self
->
entries
]
=
NULL
;
self
->
obj_map
[
entries
-
self
->
entries
]
=
MP_OBJ_
NULL
;
}
break
;
}
...
...
@@ -197,7 +197,7 @@ STATIC mp_obj_t poll_poll(size_t n_args, const mp_obj_t *args) {
if
(
entries
->
revents
!=
0
)
{
mp_obj_tuple_t
*
t
=
MP_OBJ_TO_PTR
(
mp_obj_new_tuple
(
2
,
NULL
));
// If there's an object stored, return it, otherwise raw fd
if
(
self
->
obj_map
&&
self
->
obj_map
[
i
]
!=
NULL
)
{
if
(
self
->
obj_map
&&
self
->
obj_map
[
i
]
!=
MP_OBJ_
NULL
)
{
t
->
items
[
0
]
=
self
->
obj_map
[
i
];
}
else
{
t
->
items
[
0
]
=
MP_OBJ_NEW_SMALL_INT
(
entries
->
fd
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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