Fixx to bitfield variables

Related to https://github.com/Ed94/gencpp/issues/25
This commit is contained in:
Edward R. Gonzalez 2023-08-22 00:40:38 -04:00
parent d0c995893d
commit a61a28b778

View File

@ -837,7 +837,7 @@ String AST::to_string()
}
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 )
result.append_fmt( "%S %S[%S];\n", UnderlyingType->to_string(), Name, UnderlyingType->ArrExpr->to_string() );