瀏覽代碼

[jvm] open .class output in binary mode

closes #10770
Simon Krajewski 3 年之前
父節點
當前提交
d9a5626629
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/generators/genjvm.ml

+ 1 - 1
src/generators/genjvm.ml

@@ -130,7 +130,7 @@ class file_output
 	method add_entry (content : string) (name : string) =
 		let path = base_path ^ name in
 		Path.mkdir_from_path path;
-		let ch = open_out path in
+		let ch = open_out_bin path in
 		output_string ch content;
 		close_out ch