Fix a warning on compiling with clang (#5258)

This commit is contained in:
Nikolay Kuznetsov
2019-03-25 22:06:00 +03:00
committed by Wouter van Oortmerssen
parent 88abae649c
commit 4cbff97c43
6 changed files with 11 additions and 11 deletions

View File

@@ -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];
}