update some sense warning from -Wconversion

This commit is contained in:
hathach
2021-10-15 15:54:32 +07:00
parent 9da234cd7c
commit 7596cb3079
6 changed files with 11 additions and 12 deletions

View File

@@ -135,13 +135,13 @@ TU_ATTR_USED int sys_read (int fhdl, char *buf, size_t count)
TU_ATTR_USED int sys_write (int fhdl, const void *buf, size_t count)
{
(void) fhdl;
return board_uart_write(buf, count);
return board_uart_write(buf, (int) count);
}
TU_ATTR_USED int sys_read (int fhdl, char *buf, size_t count)
{
(void) fhdl;
return board_uart_read((uint8_t*) buf, count);
return board_uart_read((uint8_t*) buf, (int) count);
}
#endif