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
|
|
@ -779,7 +779,7 @@ pub(crate) fn build_parse_table(
|
|||
states: Vec::new(),
|
||||
symbols: Vec::new(),
|
||||
production_infos: Vec::new(),
|
||||
max_aliased_production_length: 0,
|
||||
max_aliased_production_length: 1,
|
||||
},
|
||||
}
|
||||
.build()?;
|
||||
|
|
|
|||
|
|
@ -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