mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +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)
|
||||
{
|
||||
argv = malloc (PyTuple_Size (args) * sizeof (char *));
|
||||
fv = malloc (PyTuple_Size (args) * sizeof (int));
|
||||
argv = (char **) malloc (PyTuple_Size (args) * sizeof (char *));
|
||||
fv = (int *) malloc (PyTuple_Size (args) * sizeof (int));
|
||||
if (argv == NULL || fv == NULL)
|
||||
PyErr_NoMemory ();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue