Skip to content
Snippets Groups Projects
Commit d6864a5d authored by BRUN Lelio's avatar BRUN Lelio
Browse files

fix casts when using doubles

parent 07edb064
No related branches found
No related tags found
No related merge requests found
...@@ -391,10 +391,8 @@ module PrintSpec = struct ...@@ -391,10 +391,8 @@ module PrintSpec = struct
let pp = pp_c_val ~indirect:false m mem (pp_c_var_read ~test_output m) in let pp = pp_c_val ~indirect:false m mem (pp_c_var_read ~test_output m) in
(if not_var v then (if not_var v then
if Types.is_bool_type v.value_type then pp_bool_cast pp if Types.is_bool_type v.value_type then pp_bool_cast pp
else if is_const v then else if Types.is_real_type v.value_type then pp_double_cast pp
if Types.is_real_type v.value_type then pp_double_cast pp else if is_const v && Types.is_int_type v.value_type then pp_int_cast pp
else if Types.is_int_type v.value_type then pp_int_cast pp
else pp
else pp else pp
else pp) else pp)
fmt fmt
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment