mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-22 17:58:52 +00:00
Fix a warning on compiling with clang (#5258)
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
88abae649c
commit
4cbff97c43
@@ -46,7 +46,7 @@ inline const char * const *EnumNamesEnumInNestedNS() {
|
||||
|
||||
inline const char *EnumNameEnumInNestedNS(EnumInNestedNS e) {
|
||||
if (e < EnumInNestedNS_A || e > EnumInNestedNS_C) return "";
|
||||
const size_t index = static_cast<int>(e);
|
||||
const size_t index = static_cast<size_t>(e);
|
||||
return EnumNamesEnumInNestedNS()[index];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user