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 {
|
match result {
|
||||||
Ok(_) => {
|
Ok(_) => {
|
||||||
|
ffi::Py_INCREF(slf);
|
||||||
slf
|
slf
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
|
|
Loading…
Reference in New Issue