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);
|
Py_INCREF(x);
|
||||||
|
PUSH(x);
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
We could even write it like this (idea courtesy of Ka-Ping Yee):
|
We could even write it like this (idea courtesy of Ka-Ping Yee):
|
||||||
|
@ -449,6 +450,7 @@ FAQs
|
||||||
x = cell->cellptr->objptr;
|
x = cell->cellptr->objptr;
|
||||||
if (x != NULL) {
|
if (x != NULL) {
|
||||||
Py_INCREF(x);
|
Py_INCREF(x);
|
||||||
|
PUSH(x);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
... error recovery ...
|
... error recovery ...
|
||||||
|
@ -467,6 +469,7 @@ FAQs
|
||||||
x = cell->objptr;
|
x = cell->objptr;
|
||||||
if (x != NULL) {
|
if (x != NULL) {
|
||||||
Py_INCREF(x);
|
Py_INCREF(x);
|
||||||
|
PUSH(x);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
... error recovery ...
|
... error recovery ...
|
||||||
|
|
Loading…
Reference in New Issue