Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate latest changes to number representation from js_of_ocaml #70

Merged
merged 5 commits into from
Sep 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix build
OlivierNicole committed Sep 19, 2024
commit 989a1d6c57e546617b84946d53820eb26cccf77b
2 changes: 1 addition & 1 deletion compiler/lib/eval.ml
Original file line number Diff line number Diff line change
@@ -351,7 +351,7 @@ let eval_instr ~target info ((x, loc) as i) =
, Prim
( prim
, List.map2 prim_args prim_args' ~f:(fun arg c ->
match c, target with
match (c : constant), target with
| Some ((Int _ | NativeString _) as c), _ -> Pc c
| Some (Float _ as c), `JavaScript -> Pc c
| Some (String _ as c), `JavaScript