Skip to content

Commit

Permalink
Add support for OCaml 5.x
Browse files Browse the repository at this point in the history
The compatibility macro was removed in OCaml #10863
  • Loading branch information
juergenhoetzel committed Dec 16, 2023
1 parent 49f72dd commit 9bde90a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/secp256k1_wrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static struct custom_operations secp256k1_context_ops = {
};

static value alloc_context (secp256k1_context *ctx) {
value ml_ctx = alloc_custom(&secp256k1_context_ops, sizeof(secp256k1_context *), 0, 1);
value ml_ctx = caml_alloc_custom(&secp256k1_context_ops, sizeof(secp256k1_context *), 0, 1);
Context_val(ml_ctx) = ctx;
return ml_ctx;
}
Expand Down

0 comments on commit 9bde90a

Please sign in to comment.