mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 20:15:34 +00:00
Fix expected type of enum values in reflection tables (#4944)
Fixes #4930
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
a4c362a1ba
commit
a4f9d1bfcc
@@ -863,7 +863,7 @@ class CppGenerator : public BaseGenerator {
|
||||
code_ += " };";
|
||||
}
|
||||
if (!vs.empty()) {
|
||||
code_ += " static const int32_t values[] = { {{VALUES}} };";
|
||||
code_ += " static const int64_t values[] = { {{VALUES}} };";
|
||||
}
|
||||
auto has_names =
|
||||
num_fields && parser_.opts.mini_reflect == IDLOptions::kTypesAndNames;
|
||||
|
||||
Reference in New Issue
Block a user