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
a1528364
Commit
a1528364
authored
Dec 16, 2015
by
Damien George
Browse files
unix/modos: Fix silly bugs in ilistdir tuple creation.
parent
3386477b
Changes
1
Hide whitespace changes
Inline
Side-by-side
unix/modos.c
View file @
a1528364
...
...
@@ -182,12 +182,12 @@ STATIC mp_obj_t listdir_next(mp_obj_t self_in) {
t
->
items
[
1
]
=
MP_OBJ_NEW_SMALL_INT
(
dirent
->
d_type
);
#else
// DT_UNKNOWN should have 0 value on any reasonable system
t
->
items
[
1
]
=
0
;
t
->
items
[
1
]
=
MP_OBJ_NEW_SMALL_INT
(
0
)
;
#endif
#if !defined(_DIRENT_HAVE_D_INO) || _DIRENT_HAVE_D_INO
t
->
items
[
2
]
=
MP_OBJ_NEW_SMALL_INT
(
dirent
->
d_ino
);
#else
t
->
items
[
1
]
=
MP_OBJ_NEW_SMALL_INT
(
0
);
t
->
items
[
2
]
=
MP_OBJ_NEW_SMALL_INT
(
0
);
#endif
return
MP_OBJ_FROM_PTR
(
t
);
}
...
...
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