mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-06 13:37:25 +00:00
Fix Visual Studio 2017 new warning (C4244: 'argument': conversion fro… (#4261)
* Fix Visual Studio 2017 new warning (C4244: 'argument': conversion from 'int' to 'const char', possible loss of data) * Fix Visual Studio 2017 pedantic warnings * Fix Visual Studio 2017 pedantic warnings
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
28e7dbd3d3
commit
e6fa7b1133
@@ -114,6 +114,11 @@ inline uint64_t StringToUInt(const char *str, char **endptr = nullptr,
|
||||
#endif
|
||||
}
|
||||
|
||||
// Pedantic warning free version of toupper().
|
||||
inline char ToUpper(char c) {
|
||||
return static_cast<char>(::toupper(c));
|
||||
}
|
||||
|
||||
typedef bool (*LoadFileFunction)(const char *filename, bool binary,
|
||||
std::string *dest);
|
||||
typedef bool (*FileExistsFunction)(const char *filename);
|
||||
|
||||
Reference in New Issue
Block a user