Skip to content

Commit 484e5d8

Browse files
committed
fix incorrect FFI binding for pubkey_combine
1 parent 97dade5 commit 484e5d8

File tree

6 files changed

+10
-6
lines changed

6 files changed

+10
-6
lines changed

Cargo-minimal.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ dependencies = [
273273

274274
[[package]]
275275
name = "secp256k1-sys"
276-
version = "0.9.1"
276+
version = "0.9.2"
277277
dependencies = [
278278
"cc",
279279
"libc",

Cargo-recent.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ dependencies = [
194194

195195
[[package]]
196196
name = "secp256k1-sys"
197-
version = "0.9.1"
197+
version = "0.9.2"
198198
dependencies = [
199199
"cc",
200200
"libc",

secp256k1-sys/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.9.2 - 2023-12-18
2+
3+
* Fix incorrect FFI binding for `secp256k1_pubkey_combine`
4+
15
# 0.9.1 - 2023-12-07
26

37
* Patch out any instances of printf in upstream [#663](https://github.com/rust-bitcoin/rust-secp256k1/pull/663)

secp256k1-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "secp256k1-sys"
3-
version = "0.9.1"
3+
version = "0.9.2"
44
authors = [ "Dawid Ciężarkiewicz <[email protected]>",
55
"Andrew Poelstra <[email protected]>",
66
"Steven Roose <[email protected]>" ]

secp256k1-sys/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ extern "C" {
724724
pub fn secp256k1_ec_pubkey_combine(cx: *const Context,
725725
out: *mut PublicKey,
726726
ins: *const *const PublicKey,
727-
n: c_int)
727+
n: size_t)
728728
-> c_int;
729729

730730
#[cfg_attr(not(rust_secp_no_symbol_renaming), link_name = "rustsecp256k1_v0_9_1_ecdh")]
@@ -1306,7 +1306,7 @@ mod fuzz_dummy {
13061306
pub unsafe fn secp256k1_ec_pubkey_combine(cx: *const Context,
13071307
out: *mut PublicKey,
13081308
ins: *const *const PublicKey,
1309-
n: c_int)
1309+
n: size_t)
13101310
-> c_int {
13111311
check_context_flags(cx, 0);
13121312
assert!(n >= 1);

src/key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ impl PublicKey {
676676
ffi::secp256k1_context_no_precomp,
677677
&mut ret,
678678
ptrs.as_c_ptr(),
679-
keys.len() as i32,
679+
keys.len(),
680680
) == 1
681681
{
682682
Ok(PublicKey(ret))

0 commit comments

Comments
 (0)