Skip to content

Commit

Permalink
Fix failure on Windows when writing AST to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
bryphe authored and jeremiedimino committed Dec 18, 2018
1 parent d7e12a2 commit 09b37d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/migrate_parsetree_ast_io.ml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ let decompose_ast = function

let to_channel oc (filename : filename) x =
let magic_number, payload = decompose_ast x in
set_binary_mode_out oc true;
output_string oc magic_number;
output_value oc filename;
output_value oc payload
Expand Down

0 comments on commit 09b37d1

Please sign in to comment.