diff --git a/project/components/ast.cpp b/project/components/ast.cpp index 0fd04f3..c3193b8 100644 --- a/project/components/ast.cpp +++ b/project/components/ast.cpp @@ -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() );