mirror of
https://github.com/espressif/openthread.git
synced 2026-07-26 13:59:05 +00:00
[network-data] use explicit signed int for bit field (#4720)
This commit is contained in:
@@ -65,7 +65,7 @@ typedef struct otBorderRouterConfig
|
||||
/**
|
||||
* A 2-bit signed integer indicating router preference as defined in RFC 4191.
|
||||
*/
|
||||
int mPreference : 2;
|
||||
signed int mPreference : 2;
|
||||
|
||||
/**
|
||||
* TRUE, if @p mPrefix is preferred. FALSE, otherwise.
|
||||
@@ -129,7 +129,7 @@ typedef struct otExternalRouteConfig
|
||||
/**
|
||||
* A 2-bit signed integer indicating router preference as defined in RFC 4191.
|
||||
*/
|
||||
int mPreference : 2;
|
||||
signed int mPreference : 2;
|
||||
|
||||
/**
|
||||
* TRUE, if this configuration is considered Stable Network Data. FALSE, otherwise.
|
||||
|
||||
Reference in New Issue
Block a user