mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Use 'void' directly instead of the ANY #define, now that all code is ANSI C.
Leave the actual #define in for API compatibility.
This commit is contained in:
parent
bf680266da
commit
334fb8985b
11 changed files with 44 additions and 63 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue