Mercurial > cpython-lru_cache-weakref
diff Modules/_tkinter.c @ 2505:e920e6c27208 legacy-trunk
add casts to malloc() calls
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 09 Mar 1995 12:13:43 +0000 |
| parents | d2049a1d3cc5 |
| children | eb1ed4d84629 |
line wrap: on
line diff
--- a/Modules/_tkinter.c Thu Mar 09 12:12:50 1995 +0000 +++ b/Modules/_tkinter.c Thu Mar 09 12:13:43 1995 +0000 @@ -111,8 +111,8 @@ 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 (); }
