Skip to content

Commit fe00ce7

Browse files
authored
Fix typo in PyType_GetTypeDataSize bindings (#5819)
1 parent 46c16e4 commit fe00ce7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyo3-ffi/src/object.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,8 @@ extern "C" {
381381
pub fn PyObject_GetTypeData(obj: *mut PyObject, cls: *mut PyTypeObject) -> *mut c_void;
382382

383383
#[cfg(Py_3_12)]
384-
#[cfg_attr(PyPy, link_name = "PyPyObject_GetTypeDataSize")]
385-
pub fn PyObject_GetTypeDataSize(cls: *mut PyTypeObject) -> Py_ssize_t;
384+
#[cfg_attr(PyPy, link_name = "PyPyType_GetTypeDataSize")]
385+
pub fn PyType_GetTypeDataSize(cls: *mut PyTypeObject) -> Py_ssize_t;
386386

387387
#[cfg_attr(PyPy, link_name = "PyPyType_IsSubtype")]
388388
pub fn PyType_IsSubtype(a: *mut PyTypeObject, b: *mut PyTypeObject) -> c_int;

0 commit comments

Comments
 (0)