bit_field type fix

This commit is contained in:
Reio Piller
2025-02-26 23:19:53 +02:00
parent 5a0a8e9026
commit 942f990e50
2 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -647,8 +647,8 @@ def parse_structs(f):
if not bitfield:
bitfield = Bitfield(field_type)
# Add the field to the bitfield
bitfield.add_field(bf_field[1], 'bool' if bitsize == 1 else field_type, bitsize)
# Add the field to the bitfield
bitfield.add_field(bf_field[1], field_type, bitsize)
continue
# Close the bitfield because this is not a field