Fix pointer int size handling
@@ -308,8 +308,10 @@ fatfs_read(struct fs_file *fs_file, uint32_t len, void *out_data,
{
FRESULT res;
FIL *file = ((struct fatfs_file *) fs_file)->file;
+ UINT uint_len;
- res = f_read(file, out_data, len, (UINT *)out_len);
+ res = f_read(file, out_data, len, &uint_len);
+ *out_len = uint_len;
return fatfs_to_vfs_error(res);
}
