This patch fixes the following runtime error:
$ sudo ./monitor/btmon -w test.btsnoop
Bluetooth monitor ver 5.63
src/shared/btsnoop.c:339:18: runtime error: left shift of 65535 by 16 places cannot be represented in type 'int'
Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
break;
case BTSNOOP_FORMAT_MONITOR:
- flags = (index << 16) | opcode;
+ flags = ((uint32_t)index << 16) | opcode;
break;
default: