Skip to content

Commit

Permalink
Reformat for black
Browse files Browse the repository at this point in the history
  • Loading branch information
kazarmy committed Oct 30, 2023
1 parent 2dda233 commit b11806b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cparser_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ def wrap_type(type_: Type) -> CType:
return CPointerType(orig_type, pointee=wrap_type(type_.get_pointee()))

if type_.kind in [TypeKind.CONSTANTARRAY, TypeKind.INCOMPLETEARRAY]:
array_t = CArrayType(orig_type, element=wrap_type(type_.get_array_element_type()))
array_t = CArrayType(
orig_type, element=wrap_type(type_.get_array_element_type())
)
if type_.kind == TypeKind.CONSTANTARRAY:
array_t.element_count = type_.element_count
return array_t
Expand Down

0 comments on commit b11806b

Please sign in to comment.