-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix signdness for device type: DataModelTypes.h says DeviceTypeId is … #23015
Conversation
Hotfix because this fixes compile error in bridge and CI does not test dynamic-bridge compilation. |
@@ -195,7 +195,7 @@ def is_struct(self) -> bool: | |||
"command_id": BasicInteger(idl_name="command_id", byte_count=4, is_signed=True), | |||
"data_ver": BasicInteger(idl_name="data_ver", byte_count=4, is_signed=True), | |||
"date": BasicInteger(idl_name="date", byte_count=4, is_signed=True), | |||
"devtype_id": BasicInteger(idl_name="devtype_id", byte_count=4, is_signed=True), | |||
"devtype_id": BasicInteger(idl_name="devtype_id", byte_count=4, is_signed=False), | |||
"endpoint_no": BasicInteger(idl_name="endpoint_no", byte_count=2, is_signed=True), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that there are more unsigned types here, e.g. CommandId, EndpointNo etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will update in #23017 .. this was intended as hotfix to fix a compile error, but for now we may as well fix the rest.
PR #23015: Size comparison from 26e72ab to 04b077e Increases (3 builds for bl702, cc13x2_26x2, psoc6)
Decreases (7 builds for cc13x2_26x2, esp32, nrfconnect, psoc6, qpg, telink)
Full report (37 builds for bl602, bl702, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
Will be included as part of #23017 |
DataModelTypes defines DeviceTypeId as unsigned. Without this fix, dynamic-bridge fails to compile on clang:
After the fix, compilation succeeds.