We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3386477 commit a152836Copy full SHA for a152836
1 file changed
unix/modos.c
@@ -182,12 +182,12 @@ STATIC mp_obj_t listdir_next(mp_obj_t self_in) {
182
t->items[1] = MP_OBJ_NEW_SMALL_INT(dirent->d_type);
183
#else
184
// DT_UNKNOWN should have 0 value on any reasonable system
185
- t->items[1] = 0;
+ t->items[1] = MP_OBJ_NEW_SMALL_INT(0);
186
#endif
187
#if !defined(_DIRENT_HAVE_D_INO) || _DIRENT_HAVE_D_INO
188
t->items[2] = MP_OBJ_NEW_SMALL_INT(dirent->d_ino);
189
190
- t->items[1] = MP_OBJ_NEW_SMALL_INT(0);
+ t->items[2] = MP_OBJ_NEW_SMALL_INT(0);
191
192
return MP_OBJ_FROM_PTR(t);
193
}
0 commit comments