diff --git a/components/dfs/src/dfs_file.c b/components/dfs/src/dfs_file.c index 05e76c96f7da1de8647fb90e205ab01cdf1a68e6..441e3225594a949f49f4a0278256640ae0492eac 100644 --- a/components/dfs/src/dfs_file.c +++ b/components/dfs/src/dfs_file.c @@ -599,7 +599,7 @@ void copy(const char *src, const char *dst) { struct dfs_fd src_fd; rt_uint8_t *block_ptr; - rt_uint32_t read_bytes; + rt_int32_t read_bytes; block_ptr = rt_malloc(BUF_SZ); if (block_ptr == RT_NULL)