Commit 5db12e99 authored by Jason Sanmiya's avatar Jason Sanmiya Committed by Wouter van Oortmerssen

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
parent dff07b6f
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
......@@ -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();
......
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment