diff options
author | Guido van Rossum <guido@python.org> | 1995-03-09 12:13:43 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-03-09 12:13:43 (GMT) |
commit | b6fe7048e710db1678db53c0b088f43abdb8c95f (patch) | |
tree | 35718e25479930982662f23fc97e703e275b94ba /Modules/_tkinter.c | |
parent | 5fe605889a52bc2a34e1d883df14e6cc56ee87a3 (diff) | |
download | cpython-b6fe7048e710db1678db53c0b088f43abdb8c95f.zip cpython-b6fe7048e710db1678db53c0b088f43abdb8c95f.tar.gz cpython-b6fe7048e710db1678db53c0b088f43abdb8c95f.tar.bz2 |
add casts to malloc() calls
Diffstat (limited to 'Modules/_tkinter.c')
-rw-r--r-- | Modules/_tkinter.c | 4 |
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 (); } |