add casts to malloc() calls

This commit is contained in:
Guido van Rossum 1995-03-09 12:13:43 +00:00
parent 5fe605889a
commit b6fe7048e7
1 changed files with 2 additions and 2 deletions

View File

@ -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 ();
}