~mdw
/
catacomb-python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e5c2610
)
algorithms.c: Use `RETURN_ME' rather than doing the job by hand.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 24 Nov 2019 23:08:14 +0000
(23:08 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 11 Apr 2020 11:49:31 +0000
(12:49 +0100)
algorithms.c
patch
|
blob
|
blame
|
history
diff --git
a/algorithms.c
b/algorithms.c
index
dcdcff6
..
48bd480
100644
(file)
--- a/
algorithms.c
+++ b/
algorithms.c
@@
-3626,8
+3626,7
@@
static PyObject *gprp_pynew(PyTypeObject *ty, PyObject *arg, PyObject *kw)
me = (PyObject *)ty->tp_alloc(ty, 0);
GPRP_PRP(me) = prp;
prp->init(GPRP_CTX(me), k.p, k.sz);
- Py_INCREF(me);
- return (me);
+ RETURN_ME;
end:
return (0);
}