summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_tkinter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index 8669ac5..5153454 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -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 ();
}