forked from BigfootDev/flatbuffers
Fix Visual Studio 2012 build warning.
Also, remove execute permissions on several source files. Tested: Builds on Visual Studio 2012, and Linux. Change-Id: Idaacb2ae8eba98ce2974218c2ab840e97a1d67e9
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
dff07b6f31
commit
5db12e9907
0
LICENSE.txt
Executable file → Normal file
0
LICENSE.txt
Executable file → Normal file
0
android/jni/main.cpp
Executable file → Normal file
0
android/jni/main.cpp
Executable file → Normal file
@@ -112,7 +112,7 @@ inline bool LoadFile(const char *name, bool binary, std::string *buf) {
|
||||
std::ifstream ifs(name, binary ? std::ifstream::binary : std::ifstream::in);
|
||||
if (!ifs.is_open()) return false;
|
||||
ifs.seekg(0, std::ios::end);
|
||||
(*buf).resize(ifs.tellg());
|
||||
(*buf).resize(static_cast<size_t>(ifs.tellg()));
|
||||
ifs.seekg(0, std::ios::beg);
|
||||
ifs.read(&(*buf)[0], (*buf).size());
|
||||
return !ifs.bad();
|
||||
|
||||
0
samples/sample_binary.cpp
Executable file → Normal file
0
samples/sample_binary.cpp
Executable file → Normal file
0
samples/sample_text.cpp
Executable file → Normal file
0
samples/sample_text.cpp
Executable file → Normal file
0
src/flatc.cpp
Executable file → Normal file
0
src/flatc.cpp
Executable file → Normal file
Reference in New Issue
Block a user