Skip to content
Commit d3304dc5 authored by Sebastian Bøe's avatar Sebastian Bøe Committed by Anas Nashif
Browse files

bluetooth: Fix cast in bt_buf_get_type



The function returns an enum, not a u8_t, so we should cast
appropriately to avoid an implicit conversion.

This construct was triggering this compilation error when compiling
with CXX:

/home/sebo/zephyr/include/bluetooth/buf.h:85:9: error: invalid
  conversion from ‘u8_t {aka unsigned char}’ to ‘bt_buf_type’
  [-fpermissive] return *(u8_t *)net_buf_user_data(buf);

Signed-off-by: default avatarSebastian Bøe <sebastian.boe@nordicsemi.no>
parent f61cd12b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment