Merge pull request #2752 from PyO3/2737-fix

ffi: link to _PyPyBytes_Resize
This commit is contained in:
messense 2022-11-19 23:45:53 +08:00 committed by GitHub
commit 3408cc4200
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}