mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-20 09:15:06 +00:00
Fix a warning on compiling with clang (#5258)
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
88abae649c
commit
4cbff97c43
@@ -74,7 +74,7 @@ inline const char * const *EnumNamesCharacter() {
|
||||
|
||||
inline const char *EnumNameCharacter(Character e) {
|
||||
if (e < Character_NONE || e > Character_Unused) return "";
|
||||
const size_t index = static_cast<int>(e);
|
||||
const size_t index = static_cast<size_t>(e);
|
||||
return EnumNamesCharacter()[index];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user