]> Git Repo - binutils.git/commitdiff
Add cast in python.c
authorSimon Marchi <[email protected]>
Thu, 22 Oct 2015 16:13:19 +0000 (12:13 -0400)
committerSimon Marchi <[email protected]>
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 7dba15deea6dee7d59e11b6fbf6e3eeafc36e7c1..fe8edb5b1d809fc538aa913ceb6c994d00f1a3e3 100644 (file)
@@ -1,3 +1,7 @@
+2015-10-22  Simon Marchi  <[email protected]>
+
+       * python/python.c (_initialize_python): Add cast.
+
 2015-10-22  Simon Marchi  <[email protected]>
 
        * nto-tdep.c (nto_inferior_data): Add cast.
index 1c2d5c600e5ec293b04b77e292a4d9f9a902068b..6cbe5f01518c961cbae0341a1b5382df671f8d59 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");
This page took 0.034921 seconds and 4 git commands to generate.