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

@@ -229,7 +229,7 @@ void cdcd_init(void)
{
cdcd_interface_t* p_cdc = &_cdcd_itf[i];
p_cdc->wanted_char = -1;
p_cdc->wanted_char = (char) -1;
// default line coding is : stop bit = 1, parity = none, data bits = 8
p_cdc->line_coding.bit_rate = 115200;

View File

@@ -152,7 +152,7 @@ static inline uint16_t rdwr10_get_blocksize(msc_cbw_t const* cbw)
// invalid block count
if (block_count == 0) return 0;
return cbw->total_bytes / block_count;
return (uint16_t) (cbw->total_bytes / block_count);
}
uint8_t rdwr10_validate_cmd(msc_cbw_t const* cbw)