Fix pointer int size handling
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/27798309 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/27798309 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/27798309 Branch: refs/heads/develop Commit: 2779830924429bd3bad2e218d79d6aef8aaa67a0 Parents: b9bf994 Author: Fabio Utzig <[email protected]> Authored: Wed Jan 18 20:12:38 2017 -0200 Committer: Fabio Utzig <[email protected]> Committed: Wed Jan 18 20:12:38 2017 -0200 ---------------------------------------------------------------------- fs/fatfs/src/mynewt_glue.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/27798309/fs/fatfs/src/mynewt_glue.c ---------------------------------------------------------------------- diff --git a/fs/fatfs/src/mynewt_glue.c b/fs/fatfs/src/mynewt_glue.c index c840185..c065fc1 100644 --- a/fs/fatfs/src/mynewt_glue.c +++ b/fs/fatfs/src/mynewt_glue.c @@ -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); }
