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-as.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wasm-as.cpp') diff --git a/src/wasm-as.cpp b/src/wasm-as.cpp index 48ec0fc4c..722ab398b 100644 --- a/src/wasm-as.cpp +++ b/src/wasm-as.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"], false, options.debug)); if (options.debug) std::cerr << "s-parsing..." << std::endl; SExpressionParser parser(const_cast(input.c_str())); @@ -57,7 +57,7 @@ int main(int argc, const char *argv[]) { writer.write(); if (options.debug) std::cerr << "writing to output..." << std::endl; - Output output(options.extra["output"], options.debug); + Output output(options.extra["output"], true, options.debug); buffer.writeTo(output); if (options.debug) std::cerr << "Done." << std::endl; -- cgit v1.2.3