mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:58:13 +08:00
bluetooth: fix dev->rxlen is considered to have possibly overflowed
rootcause: fix the expression dev->rxlen is considered to have possibly overflowed. Signed-off-by: chengkai <chengkai@xiaomi.com>
This commit is contained in:
@@ -146,7 +146,7 @@ static int bthcisock_receive(struct bt_driver_s *drv)
|
||||
return ret;
|
||||
}
|
||||
|
||||
dev->rxlen += ret;
|
||||
dev->rxlen += (uint16_t)ret;
|
||||
|
||||
while (dev->rxlen)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user