Преглед на файлове

do not skip implicit casts in display mode (closes #4315)

Simon Krajewski преди 10 години
родител
ревизия
131c8b3460
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      codegen.ml

+ 2 - 1
codegen.ml

@@ -774,7 +774,8 @@ module AbstractCast = struct
 
 	let cast_or_unify_raise ctx tleft eright p =
 		try
-			if ctx.com.display <> DMNone then raise Not_found;
+			(* can't do that anymore because this might miss macro calls (#4315) *)
+			(* if ctx.com.display <> DMNone then raise Not_found; *)
 			do_check_cast ctx tleft eright p
 		with Not_found ->
 			unify_raise ctx eright.etype tleft p;