diff --git a/mace/core/runtime/opencl/opencl_runtime.cc b/mace/core/runtime/opencl/opencl_runtime.cc index b153229f3dbcbb97c9a1c82aa410e7f186b42d07..32ec815358c01ff62fc6573484cd950bd584aa4f 100644 --- a/mace/core/runtime/opencl/opencl_runtime.cc +++ b/mace/core/runtime/opencl/opencl_runtime.cc @@ -32,7 +32,7 @@ bool ReadFile(const std::string &filename, std::string &content, bool binary) { ifs.seekg(0, std::ios::end); const size_t filesize = ifs.tellg(); - if (filesize > 10 * 1024 * 1024) { + if (filesize > 10485760) { // 10485760 == 10 * 1024 * 1024 LOG(ERROR) << "Filesize overflow 10MB"; return false; }