Skip to content

Commit 113b660

Browse files
chengkai15xiaoxiang781216
authored andcommitted
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 <[email protected]>
1 parent 3fb63c2 commit 113b660

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/sim/src/sim/sim_hcisocket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ static int bthcisock_receive(struct bt_driver_s *drv)
146146
return ret;
147147
}
148148

149-
dev->rxlen += ret;
149+
dev->rxlen += (uint16_t)ret;
150150

151151
while (dev->rxlen)
152152
{

0 commit comments

Comments
 (0)