fix ident

This commit is contained in:
Reio Piller
2025-03-01 02:23:38 +02:00
parent 75f11691b0
commit 4a04fa2c78
2 changed files with 29 additions and 29 deletions
+1 -1
View File
@@ -683,7 +683,7 @@ def parse_structs(f):
# and inject anonymous bitfields into the struct if there are any
else:
has_anon_bitfield = any(name is None for name, _ in ffields)
max_len = 1 if has_anon_bitfield else max([len(n) for n, _ in ffields], default=0)
max_len = max([0 if n is None else len(n) for n, _ in ffields], default=0)
f.write("{} :: struct ".format(struct_name))
if _type == "union":
f.write("#raw_union ")