From 286b5bebd2c2f9bfe66b84b9b258c63afaac89f1 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 31 Mar 2016 11:10:46 -0700 Subject: set the binary bit on files we need to open in binary mode --- src/wasm-dis.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wasm-dis.cpp') diff --git a/src/wasm-dis.cpp b/src/wasm-dis.cpp index 7486e0bbd..9ad7e2c68 100644 --- a/src/wasm-dis.cpp +++ b/src/wasm-dis.cpp @@ -41,7 +41,7 @@ int main(int argc, const char *argv[]) { }); options.parse(argc, argv); - auto input(read_file>(options.extra["infile"], options.debug)); + auto input(read_file>(options.extra["infile"], true, options.debug)); if (options.debug) std::cerr << "parsing binary..." << std::endl; AllocatingModule wasm; @@ -49,7 +49,7 @@ int main(int argc, const char *argv[]) { parser.read(); if (options.debug) std::cerr << "Printing..." << std::endl; - Output output(options.extra["output"], options.debug); + Output output(options.extra["output"], false, options.debug); printWasm(&wasm, output.getStream()); output << '\n'; -- cgit v1.2.3