mirror of https://github.com/python/cpython.git
add casts to malloc() calls
This commit is contained in:
parent
5fe605889a
commit
b6fe7048e7
|
@ -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…
Reference in New Issue