ffi: link to _PyPyBytes_Resize

Fixes #2737
This commit is contained in:
Georg Brandl 2022-11-19 07:57:05 +01:00
parent 740cfa0057
commit 68e82ec962
1 changed files with 1 additions and 0 deletions

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