Skip to content
Snippets Groups Projects
Commit 8d78a69b authored by Jan Rochel's avatar Jan Rochel
Browse files

[e-acsl] miniscule cosmetics in Typed_number

parent e283b28e
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ let add_cast ~loc ?name env kf ctx strnum t_opt e =
Gmp.Z.create ~loc ?name t_opt env kf e
| _, false ->
if Gmp_types.Q.is_t ctx then
if Gmp_types.Q.is_t (Cil.typeOf e) then (* R --> R *)
if Gmp_types.Q.is_t ty then (* R --> R *)
e, env
else (* C integer or Z --> R *)
Gmp.Q.create ~loc ?name t_opt env kf e
......
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