Skip to content
Commit aca1f17d authored by Sebastian Bøe's avatar Sebastian Bøe Committed by Johan Hedberg
Browse files

bt: Don't rely on 'enum bt_buf_type' being 1 byte



De-referencing the pointer from net_buf_user_data(buf) as a pointer to
an enum causes issues on qemu_x86 because the true size is 8-bit, but
the enum is 32-bit on qemu_x86. So we put in a temporary cast to 8-bit
to ensure only 8 bits are read from the pointer.

This fixes a regression from d3304dc5
that broke BT on qemu_x86.

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