janestreet / base

Standard library for OCaml
MIT License
860 stars 125 forks source link

Fix inlining error #137

Closed tov closed 2 years ago

tov commented 2 years ago

Building in dev mode was failing because round_nearest could not be inlined at a call from int63_round_nearest_portable_alloc_exn that was annotated [@ocaml.inlined always]. This commit fixes that by defining round_nearest_inline with an [@ocaml.inline] annotation, and then using that to define both round_nearest and int63_round_nearest_portable_alloc_exn.

Signed-off-by: Jesse Tov jtov@janestreet.com