Skip to content

Commit

Permalink
Propagate Float literal changes from Charon
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kM committed Sep 6, 2024
1 parent e31b9a6 commit 40aa2c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions compiler/ExtractTypes.ml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ let extract_literal (span : Meta.span) (fmt : F.formatter) (is_pattern : bool)
in
F.pp_print_string fmt c;
if inside then F.pp_print_string fmt ")")
| VStr _ | VByteStr _ ->
| VFloat _ | VStr _ | VByteStr _ ->
craise __FILE__ __LINE__ span
"String and byte string literals are unsupported"
"Float, string and byte string literals are unsupported"

(** Format a unary operation
Expand Down
4 changes: 2 additions & 2 deletions compiler/PureUtils.ml
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ let compute_literal_type (cv : literal) : literal_type =
| VScalar sv -> TInteger sv.int_ty
| VBool _ -> TBool
| VChar _ -> TChar
| VStr _ | VByteStr _ ->
| VFloat _ | VStr _ | VByteStr _ ->
craise_opt_span __FILE__ __LINE__ None
"String and byte string literals are unsupported"
"Float, string and byte string literals are unsupported"

let var_get_id (v : var) : VarId.id = v.id

Expand Down

0 comments on commit 40aa2c2

Please sign in to comment.