Kaydet (Commit) b6fe7048 authored tarafından Guido van Rossum's avatar Guido van Rossum

add casts to malloc() calls

üst 5fe60588
......@@ -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 ();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment