Skip to content

Commit efaef6e

Browse files
committed
unix: Fix casting issue, int to small int object.
1 parent 9088680 commit efaef6e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎unix/modos.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ STATIC mp_obj_t mod_os_stat(mp_obj_t path_in) {
5353
t->items[0] = MP_OBJ_NEW_SMALL_INT((machine_int_t)sb.st_mode);
5454
t->items[1] = MP_OBJ_NEW_SMALL_INT(sb.st_ino);
5555
t->items[2] = MP_OBJ_NEW_SMALL_INT((machine_int_t)sb.st_dev);
56-
t->items[3] = MP_OBJ_NEW_SMALL_INT(sb.st_nlink);
56+
t->items[3] = MP_OBJ_NEW_SMALL_INT((machine_int_t)sb.st_nlink);
5757
t->items[4] = MP_OBJ_NEW_SMALL_INT((machine_int_t)sb.st_uid);
5858
t->items[5] = MP_OBJ_NEW_SMALL_INT((machine_int_t)sb.st_gid);
5959
t->items[6] = MP_OBJ_NEW_SMALL_INT(sb.st_size);

0 commit comments

Comments
 (0)