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