Skip to content

Commit 2139aff

Browse files
committed
secp256k1-sys: fix type signature in secp256k1_ec_pubkey_sort
In rust-bitcoin#794 I accidentally changed a *mut to *const. This is incorrect and unsound.
1 parent 5e622c3 commit 2139aff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

secp256k1-sys/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ extern "C" {
915915
#[cfg_attr(not(rust_secp_no_symbol_renaming), link_name = "rustsecp256k1_v0_11_ec_pubkey_sort")]
916916
pub fn secp256k1_ec_pubkey_sort(
917917
ctx: *const Context,
918-
pubkeys: *const *const PublicKey,
918+
pubkeys: *mut *const PublicKey,
919919
n_pubkeys: size_t,
920920
) -> c_int;
921921
}

0 commit comments

Comments
 (0)