diff options
author | BSalita <BSalita@yahoo.com> | 2016-05-01 00:14:31 +0200 |
---|---|---|
committer | JF Bastien <github@jfbastien.com> | 2016-04-30 15:14:31 -0700 |
commit | 203d8b2f4021e61dede148a9f0ada0f0b0a02da9 (patch) | |
tree | 78ef61fdc36d81da55bd36d2b9f1b6d3fae32c84 /src | |
parent | e11b0c43df135d473baf4ce3878e83de7da9bf5d (diff) | |
download | binaryen-203d8b2f4021e61dede148a9f0ada0f0b0a02da9.tar.gz binaryen-203d8b2f4021e61dede148a9f0ada0f0b0a02da9.tar.bz2 binaryen-203d8b2f4021e61dede148a9f0ada0f0b0a02da9.zip |
Changed type of flags to fix Visual Studio 2015 error (#418)
Changed type of flags (line 26) in read_file() from auto to std::ios_base::openmode to fix Visual Studio 2015 error.
Diffstat (limited to 'src')
-rw-r--r-- | src/support/file.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/support/file.cpp b/src/support/file.cpp index ef014e59a..59880e862 100644 --- a/src/support/file.cpp +++ b/src/support/file.cpp @@ -23,7 +23,7 @@ template <typename T> T wasm::read_file(const std::string &filename, Flags::BinaryOption binary, Flags::DebugOption debug) { if (debug == Flags::Debug) std::cerr << "Loading '" << filename << "'..." << std::endl; std::ifstream infile; - auto flags = std::ifstream::in; + std::ios_base::openmode flags = std::ifstream::in; if (binary == Flags::Binary) flags |= std::ifstream::binary; infile.open(filename, flags); if (!infile.is_open()) { |