Skip to content

Commit

Permalink
CR: Drop code for non-existent primitives
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierNicole committed Sep 23, 2024
1 parent 1f34bb6 commit 0998c20
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions compiler/lib/eval.ml
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,6 @@ let eval_prim ~target x =
| "caml_int_of_float", [ Float f ] ->
Some
(Int (Int32.of_float f |> Int.of_int32_warning_on_overflow |> Int.to_int32))
| "to_int", [ Float f ] -> Some (Int (Int32.of_float f))
| "to_int", [ Int i ] -> Some (Int i)
(* Math *)
| "caml_neg_float", _ -> float_unop l ( ~-. )
| "caml_abs_float", _ -> float_unop l abs_float
Expand Down

0 comments on commit 0998c20

Please sign in to comment.