incref on inplace number protocol
This commit is contained in:
parent
5d25c7deea
commit
a3e6117090
|
@ -190,6 +190,7 @@ macro_rules! py_binary_self_func{
|
|||
|
||||
match result {
|
||||
Ok(_) => {
|
||||
ffi::Py_INCREF(slf);
|
||||
slf
|
||||
}
|
||||
Err(e) => {
|
||||
|
|
Loading…
Reference in New Issue