mirror of
https://github.com/espressif/openthread.git
synced 2026-09-12 12:10:07 +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.
|
* 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.
|
* 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.
|
* 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.
|
* TRUE, if this configuration is considered Stable Network Data. FALSE, otherwise.
|
||||||
|
|||||||
Reference in New Issue
Block a user