Skip to content

Commit

Permalink
Make sure we open files in binary mode
Browse files Browse the repository at this point in the history
  • Loading branch information
vouillon committed Oct 31, 2024
1 parent d6b458d commit 5cf44d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/lib/wasm/wa_wasm_link.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1884,7 +1884,7 @@ let f files ~output_file ~opt_output_sourcemap_file =
(Array.of_list files)
in

let out_ch = open_out output_file in
let out_ch = open_out_bin output_file in
output_string out_ch Read.header;
let buf = Buffer.create 100000 in

Expand Down

0 comments on commit 5cf44d5

Please sign in to comment.