Add cast in python.c
authorSimon Marchi <simon.marchi@ericsson.com>
Thu, 22 Oct 2015 16:13:19 +0000 (12:13 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Thu, 22 Oct 2015 16:13:19 +0000 (12:13 -0400)
gdb/ChangeLog:

* python/python.c (_initialize_python): Add cast.

gdb/ChangeLog
gdb/python/python.c

index 7dba15d..fe8edb5 100644 (file)
@@ -1,5 +1,9 @@
 2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
 
+       * python/python.c (_initialize_python): Add cast.
+
+2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
+
        * nto-tdep.c (nto_inferior_data): Add cast.
 
 2015-10-22  Pedro Alves  <palves@redhat.com>
index 1c2d5c6..6cbe5f0 100644 (file)
@@ -1725,7 +1725,7 @@ message == an error message without a stack will be printed."),
       fprintf (stderr, "Could not convert python path to string\n");
       return;
     }
-  progname_copy = PyMem_Malloc ((progsize + 1) * sizeof (wchar_t));
+  progname_copy = (wchar_t *) PyMem_Malloc ((progsize + 1) * sizeof (wchar_t));
   if (!progname_copy)
     {
       fprintf (stderr, "out of memory\n");