Commit af613f93 authored by Paolo Borelli's avatar Paolo Borelli Committed by Robert Edmonds

Fix union initialization

Using {} as an initializer fails on MSVC
Signed-off-by: default avatarPaolo Borelli <pborelli@gnome.org>
parent 1d4aff96
......@@ -236,8 +236,8 @@ GenerateStructDefinition(io::Printer* printer) {
vars["foneofname"] = FullNameToUpper(oneof->full_name());
// Initialize the case enum
printer->Print(vars, ", $foneofname$__NOT_SET");
// Initialize the enum
printer->Print(", {}");
// Initialize the union
printer->Print(", {0}");
}
printer->Print(" }\n\n\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment