diff options
author | Thomas Wouters <thomas@python.org> | 2000-07-25 12:56:38 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2000-07-25 12:56:38 (GMT) |
commit | 334fb8985bc126f62af65669150c30787eabddd9 (patch) | |
tree | 114a52660cda84eb69f1fe8c24d0df7458dbe875 /Objects/listobject.c | |
parent | bf680266da23b0b95a03d2b7ea5da493d341a562 (diff) | |
download | cpython-334fb8985bc126f62af65669150c30787eabddd9.zip cpython-334fb8985bc126f62af65669150c30787eabddd9.tar.gz cpython-334fb8985bc126f62af65669150c30787eabddd9.tar.bz2 |
Use 'void' directly instead of the ANY #define, now that all code is ANSI C.
Leave the actual #define in for API compatibility.
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r-- | Objects/listobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c index 52640fb..42eedf2 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -1258,8 +1258,8 @@ PyList_AsTuple(PyObject *v) if (w == NULL) return NULL; p = ((PyTupleObject *)w)->ob_item; - memcpy((ANY *)p, - (ANY *)((PyListObject *)v)->ob_item, + memcpy((void *)p, + (void *)((PyListObject *)v)->ob_item, n*sizeof(PyObject *)); while (--n >= 0) { Py_INCREF(*p); |