Skip to content

Commit

Permalink
percent is also unsigned (basic-types.h)
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Oct 4, 2022
1 parent e7c4396 commit 3f5397f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/idl/generators/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def is_struct(self) -> bool:
"int8s": BasicInteger(idl_name="int8s", byte_count=1, is_signed=True),
"int8u": BasicInteger(idl_name="int8u", byte_count=1, is_signed=False),
# Derived types
# Size and signdness should generally follow DataModelTypes.h
# Size and signdness should generally follow DataModelTypes.h or basic-types.h
"action_id": BasicInteger(idl_name="action_id", byte_count=1, is_signed=False),
"attrib_id": BasicInteger(idl_name="attrib_id", byte_count=4, is_signed=False),
"cluster_id": BasicInteger(idl_name="cluster_id", byte_count=4, is_signed=False),
Expand All @@ -207,9 +207,9 @@ def is_struct(self) -> bool:
"field_id": BasicInteger(idl_name="field_id", byte_count=4, is_signed=False),
"group_id": BasicInteger(idl_name="group_id", byte_count=2, is_signed=False),
"node_id": BasicInteger(idl_name="node_id", byte_count=8, is_signed=False),
"percent": BasicInteger(idl_name="percent", byte_count=1, is_signed=True),
"percent100ths": BasicInteger(idl_name="percent100ths", byte_count=2, is_signed=True),
"status": BasicInteger(idl_name="status", byte_count=2, is_signed=True),
"percent": BasicInteger(idl_name="percent", byte_count=1, is_signed=False),
"percent100ths": BasicInteger(idl_name="percent100ths", byte_count=2, is_signed=False),
"status": BasicInteger(idl_name="status", byte_count=2, is_signed=False),
"systime_us": BasicInteger(idl_name="systime_us", byte_count=8, is_signed=True),
"tod": BasicInteger(idl_name="tod", byte_count=4, is_signed=True),
"trans_id": BasicInteger(idl_name="trans_id", byte_count=4, is_signed=True),
Expand Down

0 comments on commit 3f5397f

Please sign in to comment.