Add VS2013 support back.

This commit is contained in:
Chunting Gu
2019-04-09 15:39:58 +08:00
parent ee435f84c3
commit ba705e930e
6 changed files with 82 additions and 5 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ static bool ReadFile(const std::string& path, std::string* output) {
}
auto size = ifs.tellg();
output->resize(size, '\0');
output->resize((std::size_t)size, '\0');
ifs.seekg(0);
ifs.read(&(*output)[0], size); // TODO: Error handling