mirror of
https://github.com/python/cpython.git
synced 2025-09-01 06:28:36 +00:00
add casts to malloc() calls
This commit is contained in:
parent
5fe605889a
commit
b6fe7048e7
1 changed files with 2 additions and 2 deletions
|
@ -111,8 +111,8 @@ Merge (args)
|
||||||
|
|
||||||
if (PyTuple_Size (args) > ARGSZ)
|
if (PyTuple_Size (args) > ARGSZ)
|
||||||
{
|
{
|
||||||
argv = malloc (PyTuple_Size (args) * sizeof (char *));
|
argv = (char **) malloc (PyTuple_Size (args) * sizeof (char *));
|
||||||
fv = malloc (PyTuple_Size (args) * sizeof (int));
|
fv = (int *) malloc (PyTuple_Size (args) * sizeof (int));
|
||||||
if (argv == NULL || fv == NULL)
|
if (argv == NULL || fv == NULL)
|
||||||
PyErr_NoMemory ();
|
PyErr_NoMemory ();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue