mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-15 16:57:29 +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
@@ -2358,7 +2358,7 @@ inline const flatbuffers::TypeTable *ColorTypeTable() {
|
||||
static const flatbuffers::TypeFunction type_refs[] = {
|
||||
ColorTypeTable
|
||||
};
|
||||
static const int32_t values[] = { 1, 2, 8 };
|
||||
static const int64_t values[] = { 1, 2, 8 };
|
||||
static const char * const names[] = {
|
||||
"Red",
|
||||
"Green",
|
||||
@@ -2421,7 +2421,7 @@ inline const flatbuffers::TypeTable *TestTypeTable() {
|
||||
{ flatbuffers::ET_SHORT, 0, -1 },
|
||||
{ flatbuffers::ET_CHAR, 0, -1 }
|
||||
};
|
||||
static const int32_t values[] = { 0, 2, 4 };
|
||||
static const int64_t values[] = { 0, 2, 4 };
|
||||
static const char * const names[] = {
|
||||
"a",
|
||||
"b"
|
||||
@@ -2461,7 +2461,7 @@ inline const flatbuffers::TypeTable *Vec3TypeTable() {
|
||||
ColorTypeTable,
|
||||
TestTypeTable
|
||||
};
|
||||
static const int32_t values[] = { 0, 4, 8, 16, 24, 26, 32 };
|
||||
static const int64_t values[] = { 0, 4, 8, 16, 24, 26, 32 };
|
||||
static const char * const names[] = {
|
||||
"x",
|
||||
"y",
|
||||
@@ -2481,7 +2481,7 @@ inline const flatbuffers::TypeTable *AbilityTypeTable() {
|
||||
{ flatbuffers::ET_UINT, 0, -1 },
|
||||
{ flatbuffers::ET_UINT, 0, -1 }
|
||||
};
|
||||
static const int32_t values[] = { 0, 4, 8 };
|
||||
static const int64_t values[] = { 0, 4, 8 };
|
||||
static const char * const names[] = {
|
||||
"id",
|
||||
"distance"
|
||||
|
||||
@@ -161,7 +161,7 @@ inline const flatbuffers::TypeTable *StructInNestedNSTypeTable() {
|
||||
{ flatbuffers::ET_INT, 0, -1 },
|
||||
{ flatbuffers::ET_INT, 0, -1 }
|
||||
};
|
||||
static const int32_t values[] = { 0, 4, 8 };
|
||||
static const int64_t values[] = { 0, 4, 8 };
|
||||
static const char * const names[] = {
|
||||
"a",
|
||||
"b"
|
||||
|
||||
@@ -718,7 +718,7 @@ inline const flatbuffers::TypeTable *RapunzelTypeTable() {
|
||||
static const flatbuffers::TypeCode type_codes[] = {
|
||||
{ flatbuffers::ET_INT, 0, -1 }
|
||||
};
|
||||
static const int32_t values[] = { 0, 4 };
|
||||
static const int64_t values[] = { 0, 4 };
|
||||
static const char * const names[] = {
|
||||
"hair_length"
|
||||
};
|
||||
@@ -732,7 +732,7 @@ inline const flatbuffers::TypeTable *BookReaderTypeTable() {
|
||||
static const flatbuffers::TypeCode type_codes[] = {
|
||||
{ flatbuffers::ET_INT, 0, -1 }
|
||||
};
|
||||
static const int32_t values[] = { 0, 4 };
|
||||
static const int64_t values[] = { 0, 4 };
|
||||
static const char * const names[] = {
|
||||
"books_read"
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user