]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
add casts to malloc() calls
authorGuido van Rossum <guido@python.org>
Thu, 9 Mar 1995 12:13:43 +0000 (12:13 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 9 Mar 1995 12:13:43 +0000 (12:13 +0000)
Modules/_tkinter.c

index 8669ac5986d9aa04aad6d9a65678c6b578e0b58e..5153454d5fb8d97d37bfa205637a274f2437bdc4 100644 (file)
@@ -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 ();
        }