mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-09 22:56:27 +00:00
Make Monster's Color unsigned (#5318)
- update C++ monster_test::Color to unsigned type - update Go Color:ubyte in the go_test.go - add workaround for unsigned enum in java test - sync generate.bat and generate.sh
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
b701c7d56e
commit
f9ebfcb9c4
@@ -48,7 +48,7 @@ inline const Color (&EnumValuesColor())[3] {
|
||||
}
|
||||
|
||||
inline const char * const *EnumNamesColor() {
|
||||
static const char * const names[] = {
|
||||
static const char * const names[4] = {
|
||||
"Red",
|
||||
"Green",
|
||||
"Blue",
|
||||
@@ -79,7 +79,7 @@ inline const Equipment (&EnumValuesEquipment())[2] {
|
||||
}
|
||||
|
||||
inline const char * const *EnumNamesEquipment() {
|
||||
static const char * const names[] = {
|
||||
static const char * const names[3] = {
|
||||
"NONE",
|
||||
"Weapon",
|
||||
nullptr
|
||||
|
||||
Reference in New Issue
Block a user