Skip to content

Commit

Permalink
Restore _PyLong_NumBits on Python 3.13 and later (#4450)
Browse files Browse the repository at this point in the history
  • Loading branch information
exg authored Aug 18, 2024
1 parent 4211c57 commit 57d85b1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions newsfragments/4450.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Restore `_PyLong_NumBits` on Python 3.13 and later
1 change: 0 additions & 1 deletion pyo3-ffi/src/longobject.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ extern "C" {
#[cfg(not(Py_LIMITED_API))]
extern "C" {
#[cfg_attr(PyPy, link_name = "_PyPyLong_NumBits")]
#[cfg(not(Py_3_13))]
pub fn _PyLong_NumBits(obj: *mut PyObject) -> size_t;
}

Expand Down

0 comments on commit 57d85b1

Please sign in to comment.