diff options
| author | zyh <[email protected]> | 2018-04-10 10:36:20 +0800 |
|---|---|---|
| committer | zyh <[email protected]> | 2018-04-10 10:36:20 +0800 |
| commit | 6c814db16127cf64799046229e62841a7129190c (patch) | |
| tree | 73f38650bd29ffd0c853f2fa272af3cfac427698 /components/drivers/src | |
| parent | f95d28a64533aeebb89ada63d5d9727975d1dcf2 (diff) | |
| parent | 10a4de16f77cf1ccb0db1bf29294e2d47d4c3a17 (diff) | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'components/drivers/src')
| -rw-r--r-- | components/drivers/src/pipe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/drivers/src/pipe.c b/components/drivers/src/pipe.c index 61b8a5db6b..ee9c8ba02a 100644 --- a/components/drivers/src/pipe.c +++ b/components/drivers/src/pipe.c @@ -358,7 +358,7 @@ rt_err_t rt_pipe_close (rt_device_t device) rt_size_t rt_pipe_read (rt_device_t device, rt_off_t pos, void *buffer, rt_size_t count) { uint8_t *pbuf; - int read_bytes = 0; + rt_size_t read_bytes = 0; rt_pipe_t *pipe = (rt_pipe_t *)device; if (device == RT_NULL) @@ -386,7 +386,7 @@ rt_size_t rt_pipe_read (rt_device_t device, rt_off_t pos, void *buffer, rt_siz rt_size_t rt_pipe_write (rt_device_t device, rt_off_t pos, const void *buffer, rt_size_t count) { uint8_t *pbuf; - int write_bytes = 0; + rt_size_t write_bytes = 0; rt_pipe_t *pipe = (rt_pipe_t *)device; if (device == RT_NULL) |
