Add missing PUSH(x) statements to the C code.
This commit is contained in:
parent
e74c220526
commit
12c98c195b
|
@ -440,6 +440,7 @@ FAQs
|
|||
}
|
||||
}
|
||||
Py_INCREF(x);
|
||||
PUSH(x);
|
||||
continue;
|
||||
|
||||
We could even write it like this (idea courtesy of Ka-Ping Yee):
|
||||
|
@ -449,6 +450,7 @@ FAQs
|
|||
x = cell->cellptr->objptr;
|
||||
if (x != NULL) {
|
||||
Py_INCREF(x);
|
||||
PUSH(x);
|
||||
continue;
|
||||
}
|
||||
... error recovery ...
|
||||
|
@ -467,6 +469,7 @@ FAQs
|
|||
x = cell->objptr;
|
||||
if (x != NULL) {
|
||||
Py_INCREF(x);
|
||||
PUSH(x);
|
||||
continue;
|
||||
}
|
||||
... error recovery ...
|
||||
|
|
Loading…
Reference in New Issue