fix(shell/lean.cpp): use binary mode to open cache file

This commit is contained in:
Soonho Kong 2014-09-19 09:35:32 -07:00
parent a3e43c2173
commit 5b9b814fd1

View file

@ -296,7 +296,7 @@ int main(int argc, char ** argv) {
definition_cache * cache_ptr = nullptr;
if (use_cache) {
cache_ptr = &cache;
std::ifstream in(cache_name);
std::ifstream in(cache_name, std::ifstream::binary);
if (!in.bad() && !in.fail())
cache.load(in);
}