Skip to content

Commit

Permalink
Merge pull request #2752 from PyO3/2737-fix
Browse files Browse the repository at this point in the history
ffi: link to _PyPyBytes_Resize
  • Loading branch information
messense authored Nov 19, 2022
2 parents 740cfa0 + 68e82ec commit 3408cc4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyo3-ffi/src/cpython/bytesobject.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ pub struct PyBytesObject {
opaque_struct!(PyBytesObject);

extern "C" {
#[cfg_attr(PyPy, link_name = "_PyPyBytes_Resize")]
pub fn _PyBytes_Resize(bytes: *mut *mut PyObject, newsize: Py_ssize_t) -> c_int;
}

0 comments on commit 3408cc4

Please sign in to comment.