Commit 7467b2b1 by Corentin Wallez

Fix warning in string_utils.cpp in Win32

BUG= Change-Id: Ibb25d46c2ee5f361f6a948dc3efea38422a4573f Reviewed-on: https://chromium-review.googlesource.com/272559Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Tested-by: 's avatarCorentin Wallez <cwallez@chromium.org>
parent 2f9455e3
...@@ -73,7 +73,7 @@ bool ReadFileToString(const std::string &path, std::string *stringOut) ...@@ -73,7 +73,7 @@ bool ReadFileToString(const std::string &path, std::string *stringOut)
std::string str; std::string str;
inFile.seekg(0, std::ios::end); inFile.seekg(0, std::ios::end);
str.reserve(inFile.tellg()); str.reserve(static_cast<std::string::size_type>(inFile.tellg()));
inFile.seekg(0, std::ios::beg); inFile.seekg(0, std::ios::beg);
str.assign(std::istreambuf_iterator<char>(inFile), std::istreambuf_iterator<char>()); str.assign(std::istreambuf_iterator<char>(inFile), std::istreambuf_iterator<char>());
......
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