diff options
| author | Neal Norwitz <nnorwitz@gmail.com> | 2006-08-12 02:12:30 +0000 |
|---|---|---|
| committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-08-12 02:12:30 +0000 |
| commit | 79bd04f08f3dc070b35e59314c8a2f90f789ceca (patch) | |
| tree | d3f36e5334ea7d309c837e9182bca92c5a8f45fa /Objects/funcobject.c | |
| parent | e1866f41f7220026254b64ad9d231b9abbb1d7b6 (diff) | |
| download | cpython-79bd04f08f3dc070b35e59314c8a2f90f789ceca.tar.gz | |
Whoops, how did that get in there. :-) Revert all the parts of 51227 that were not supposed to go it. Only Modules/_ctypes/cfields.c was supposed to be changed
Diffstat (limited to 'Objects/funcobject.c')
| -rw-r--r-- | Objects/funcobject.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Objects/funcobject.c b/Objects/funcobject.c index b972e086cb..1ba74c5a92 100644 --- a/Objects/funcobject.c +++ b/Objects/funcobject.c @@ -486,10 +486,9 @@ function_call(PyObject *func, PyObject *arg, PyObject *kw) Py_ssize_t nk, nd; argdefs = PyFunction_GET_DEFAULTS(func); - /* XXX(nnorwitz): don't we know argdefs is either NULL or a tuple? */ if (argdefs != NULL && PyTuple_Check(argdefs)) { d = &PyTuple_GET_ITEM((PyTupleObject *)argdefs, 0); - nd = PyTuple_GET_SIZE(argdefs); + nd = PyTuple_Size(argdefs); } else { d = NULL; @@ -518,7 +517,7 @@ function_call(PyObject *func, PyObject *arg, PyObject *kw) result = PyEval_EvalCodeEx( (PyCodeObject *)PyFunction_GET_CODE(func), PyFunction_GET_GLOBALS(func), (PyObject *)NULL, - &PyTuple_GET_ITEM(arg, 0), PyTuple_GET_SIZE(arg), + &PyTuple_GET_ITEM(arg, 0), PyTuple_Size(arg), k, nk, d, nd, PyFunction_GET_CLOSURE(func)); |
