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:
Jason Sanmiya 2015-09-11 13:40:59 -07:00 committed by Wouter van Oortmerssen
parent dff07b6f31
commit 5db12e9907
6 changed files with 1 additions and 1 deletions

0
LICENSE.txt Executable file → Normal file
View File

0
android/jni/main.cpp Executable file → Normal file
View File

View 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
View File

0
samples/sample_text.cpp Executable file → Normal file
View File

0
src/flatc.cpp Executable file → Normal file
View File