mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-29 15:59:09 +08:00
dosfs: Unsigned compared against 0
Fix the type of "cmpltd" to be ssize_t so that assigning it to -1 will terminate processing as intended.
This commit is contained in:
@@ -78,7 +78,7 @@ msdos_dir_read(rtems_libio_t *iop, void *buffer, size_t count)
|
||||
const size_t buf_size = converter->buffer.size;
|
||||
uint32_t start = 0;
|
||||
ssize_t ret = 0;
|
||||
uint32_t cmpltd = 0;
|
||||
ssize_t cmpltd = 0;
|
||||
uint32_t j = 0, i = 0;
|
||||
uint32_t bts2rd = 0;
|
||||
uint32_t cur_cln = 0;
|
||||
|
||||
Reference in New Issue
Block a user