Merge pull request #3300 from davidhewitt/enter-recursive-call
fix FFI definition `Py_EnterRecursiveCall`
This commit is contained in:
commit
26018560f2
1
newsfragments/3300.fixed.md
Normal file
1
newsfragments/3300.fixed.md
Normal file
|
@ -0,0 +1 @@
|
|||
Correct FFI definition `Py_EnterRecursiveCall` to return `c_int` (was incorrectly returning `()`).
|
|
@ -76,7 +76,7 @@ extern "C" {
|
|||
extern "C" {
|
||||
#[cfg(Py_3_9)]
|
||||
#[cfg_attr(PyPy, link_name = "PyPy_EnterRecursiveCall")]
|
||||
pub fn Py_EnterRecursiveCall(arg1: *const c_char);
|
||||
pub fn Py_EnterRecursiveCall(arg1: *const c_char) -> c_int;
|
||||
#[cfg(Py_3_9)]
|
||||
#[cfg_attr(PyPy, link_name = "PyPy_LeaveRecursiveCall")]
|
||||
pub fn Py_LeaveRecursiveCall();
|
||||
|
|
Loading…
Reference in a new issue