mirror of
https://github.com/Ed94/gencpp.git
synced 2024-11-10 02:54:53 -08:00
Fixx to bitfield variables
Related to https://github.com/Ed94/gencpp/issues/25
This commit is contained in:
parent
d0c995893d
commit
a61a28b778
@ -837,7 +837,7 @@ String AST::to_string()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( BitfieldSize )
|
if ( BitfieldSize )
|
||||||
result.append_fmt( "%S : %S;\n", ValueType->to_string(), BitfieldSize->to_string() );
|
result.append_fmt( "%S %S : %S;\n", ValueType->to_string(), Name, BitfieldSize->to_string() );
|
||||||
|
|
||||||
else if ( UnderlyingType->ArrExpr )
|
else if ( UnderlyingType->ArrExpr )
|
||||||
result.append_fmt( "%S %S[%S];\n", UnderlyingType->to_string(), Name, UnderlyingType->ArrExpr->to_string() );
|
result.append_fmt( "%S %S[%S];\n", UnderlyingType->to_string(), Name, UnderlyingType->ArrExpr->to_string() );
|
||||||
|
Loading…
Reference in New Issue
Block a user