Skip to content

Add missing index param for Obj.field #145

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

Merged
merged 1 commit into from
Aug 5, 2021
Merged
Changes from all commits
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
2 changes: 1 addition & 1 deletion ocaml/stdlib/obj.ml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ external size : t -> int = "%obj_size"
let [@inline always] size t = size (Sys.opaque_identity t)
external reachable_words : t -> int = "caml_obj_reachable_words"
external field : t -> int -> t = "%obj_field"
let [@inline always] field t = field (Sys.opaque_identity t)
let [@inline always] field t index = field (Sys.opaque_identity t) index
external set_field : t -> int -> t -> unit = "%obj_set_field"
let [@inline always] set_field t index new_value =
set_field (Sys.opaque_identity t) index new_value
Expand Down