Skip to content

Commit

Permalink
Merge pull request #3007 from FStarLang/msprotz-patch-2
Browse files Browse the repository at this point in the history
Fix extraction of character constants
  • Loading branch information
msprotz committed Aug 7, 2023
2 parents f3f8c2a + 51a345f commit 6f66342
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ocaml/fstar-lib/generated/FStar_Extraction_Krml.ml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/extraction/FStar.Extraction.Krml.fst
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,7 @@ and translate_constant c: expr =
| MLC_Char c ->
let i = BU.int_of_char c in
let s = BU.string_of_int i in
let c = EConstant (UInt32, s) in
let c = EConstant (CInt, s) in
let char_of_int = EQualified (["FStar"; "Char"], "char_of_int") in
EApp(char_of_int, [c])
| MLC_Int (s, Some (sg, wd)) ->
Expand Down

0 comments on commit 6f66342

Please sign in to comment.