mirror of
https://github.com/espressif/openthread.git
synced 2026-09-08 18:20:06 +00:00
[ncp] resolve undefined shift in BorderRouterConfigToFlagByte (#3522)
This commit is contained in:
@@ -102,7 +102,7 @@ static uint8_t BorderRouterConfigToFlagByte(const otBorderRouterConfig &aConfig)
|
||||
flags |= SPINEL_NET_FLAG_ON_MESH;
|
||||
}
|
||||
|
||||
flags |= (aConfig.mPreference << SPINEL_NET_FLAG_PREFERENCE_OFFSET);
|
||||
flags |= (static_cast<uint8_t>(aConfig.mPreference) << SPINEL_NET_FLAG_PREFERENCE_OFFSET);
|
||||
|
||||
return flags;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user