unix: Fix casting issue, int to small int object.
This commit is contained in:
parent
90886807a1
commit
efaef6eea3
|
@ -53,7 +53,7 @@ STATIC mp_obj_t mod_os_stat(mp_obj_t path_in) {
|
|||
t->items[0] = MP_OBJ_NEW_SMALL_INT((machine_int_t)sb.st_mode);
|
||||
t->items[1] = MP_OBJ_NEW_SMALL_INT(sb.st_ino);
|
||||
t->items[2] = MP_OBJ_NEW_SMALL_INT((machine_int_t)sb.st_dev);
|
||||
t->items[3] = MP_OBJ_NEW_SMALL_INT(sb.st_nlink);
|
||||
t->items[3] = MP_OBJ_NEW_SMALL_INT((machine_int_t)sb.st_nlink);
|
||||
t->items[4] = MP_OBJ_NEW_SMALL_INT((machine_int_t)sb.st_uid);
|
||||
t->items[5] = MP_OBJ_NEW_SMALL_INT((machine_int_t)sb.st_gid);
|
||||
t->items[6] = MP_OBJ_NEW_SMALL_INT(sb.st_size);
|
||||
|
|
Loading…
Reference in New Issue