Skip to content
Commit f7a1ffe6 authored by Asbjørn Sæbø's avatar Asbjørn Sæbø Committed by Anas Nashif
Browse files

Bluetooth: GATT: Change attribute count from u16_t to size_t



The change changes the type of the attribute count in the
bt_gatt_service struct to size_t.

The background for the change is that with this variable being a
u16_t, we assign something that has been cast to an unsigned long
(from "ARRAY_SIZE") to an u16_t variable, and that Lint complains
about a loss of information (27 bits to 16 bits in the case I found).

(The issue seems to be not only about the cast, but about what is
casted. I suspect that Lint may be confused by the magic of
ZERO_OR_COMPILE_ERROR.)

Signed-off-by: default avatarAsbjørn Sæbø <asbjorn.sabo@nordicsemi.no>
parent 8e7a0051
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment