unix: Fix casting issue, int to small int object.

This commit is contained in:
Damien George 2014-05-21 20:53:56 +01:00
parent 90886807a1
commit efaef6eea3
1 changed files with 1 additions and 1 deletions

View File

@ -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[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[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[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[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[5] = MP_OBJ_NEW_SMALL_INT((machine_int_t)sb.st_gid);
t->items[6] = MP_OBJ_NEW_SMALL_INT(sb.st_size); t->items[6] = MP_OBJ_NEW_SMALL_INT(sb.st_size);