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/asm2wasm-main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/asm2wasm-main.cpp') diff --git a/src/asm2wasm-main.cpp b/src/asm2wasm-main.cpp index 56e8a417f..3e4c40ddc 100644 --- a/src/asm2wasm-main.cpp +++ b/src/asm2wasm-main.cpp @@ -77,7 +77,7 @@ int main(int argc, const char *argv[]) { Asm2WasmPreProcessor pre; auto input( - read_file>(options.extra["infile"], options.debug)); + read_file>(options.extra["infile"], false, options.debug)); char *start = pre.process(input.data()); if (options.debug) std::cerr << "parsing..." << std::endl; @@ -101,7 +101,7 @@ int main(int argc, const char *argv[]) { } 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()); if (mappedGlobals) { -- cgit v1.2.3