Fix another empty array literal for MSVC compatibility
This commit is contained in:
parent
276d3cb5ad
commit
5f369a5870
2 changed files with 2 additions and 2 deletions
|
|
@ -367,7 +367,7 @@ impl Generator {
|
|||
// Work around MSVC's intolerance of empty array initializers by
|
||||
// explicitly zero-initializing the first element.
|
||||
if i == 0 {
|
||||
add_line!(self, "[0] = {{}},");
|
||||
add_line!(self, "[0] = {{0}},");
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue