summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-03-09 12:13:43 (GMT)
committerGuido van Rossum <guido@python.org>1995-03-09 12:13:43 (GMT)
commitb6fe7048e710db1678db53c0b088f43abdb8c95f (patch)
tree35718e25479930982662f23fc97e703e275b94ba /Modules
parent5fe605889a52bc2a34e1d883df14e6cc56ee87a3 (diff)
downloadcpython-b6fe7048e710db1678db53c0b088f43abdb8c95f.zip
cpython-b6fe7048e710db1678db53c0b088f43abdb8c95f.tar.gz
cpython-b6fe7048e710db1678db53c0b088f43abdb8c95f.tar.bz2
add casts to malloc() calls
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 ();
}