提交 cb35b9de 编写于 作者: Y yejianwu

merge mul

上级 c5de2c92
...@@ -32,7 +32,7 @@ bool ReadFile(const std::string &filename, std::string &content, bool binary) { ...@@ -32,7 +32,7 @@ bool ReadFile(const std::string &filename, std::string &content, bool binary) {
ifs.seekg(0, std::ios::end); ifs.seekg(0, std::ios::end);
const size_t filesize = ifs.tellg(); const size_t filesize = ifs.tellg();
if (filesize > 10 * 1024 * 1024) { if (filesize > 10485760) { // 10485760 == 10 * 1024 * 1024
LOG(ERROR) << "Filesize overflow 10MB"; LOG(ERROR) << "Filesize overflow 10MB";
return false; return false;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册