chiark
/
gitweb
/
~mdw
/
catacomb-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pgen.c, rand.c: Check correct variable when rejecting delete operations.
[catacomb-python]
/
pgen.c
diff --git
a/pgen.c
b/pgen.c
index a77c88bfe5a3868f57920ed02edc8f30447ed31a..afeeb3329762bf3d4815dea3b5b06d42d1ede249 100644
(file)
--- a/
pgen.c
+++ b/
pgen.c
@@
-424,7
+424,7
@@
static int peset_x(PyObject *me, PyObject *xobj, void *hunoz)
mp *x = 0;
pgen_event *ev = PGEVENT_EV(me);
int rc = -1;
- if (!x) NIERR("__del__");
+ if (!x
obj
) NIERR("__del__");
PGEVENT_CHECK(me);
if ((x = getmp(xobj)) == 0) goto end;
mp_drop(ev->m);