various fixes (#7986)

This commit is contained in:
Derek Bailey
2023-05-31 11:52:05 -07:00
committed by GitHub
parent 204473cdb5
commit 28861d1d7d
8 changed files with 122 additions and 80 deletions

View File

@@ -2719,7 +2719,8 @@ bool Parser::Supports64BitOffsets() const {
}
bool Parser::SupportsUnionUnderlyingType() const {
return (opts.lang_to_generate & ~(IDLOptions::kCpp | IDLOptions::kTs)) == 0;
return (opts.lang_to_generate & ~(IDLOptions::kCpp | IDLOptions::kTs |
IDLOptions::kBinary)) == 0;
}
Namespace *Parser::UniqueNamespace(Namespace *ns) {