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
a8a3ab48
Commit
a8a3ab48
authored
Mar 26, 2017
by
Damien George
Browse files
extmod/moduselect: Update to use size_t for array accessor.
parent
6213ad7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
extmod/moduselect.c
View file @
a8a3ab48
...
...
@@ -113,7 +113,7 @@ STATIC mp_uint_t poll_map_poll(mp_map_t *poll_map, mp_uint_t *rwx_num) {
/// \function select(rlist, wlist, xlist[, timeout])
STATIC
mp_obj_t
select_select
(
uint
n_args
,
const
mp_obj_t
*
args
)
{
// get array data from tuple/list arguments
mp_uint
_t
rwx_len
[
3
];
size
_t
rwx_len
[
3
];
mp_obj_t
*
r_array
,
*
w_array
,
*
x_array
;
mp_obj_get_array
(
args
[
0
],
&
rwx_len
[
0
],
&
r_array
);
mp_obj_get_array
(
args
[
1
],
&
rwx_len
[
1
],
&
w_array
);
...
...
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