This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Add cast in python.c
- From: Simon Marchi <simark at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 22 Oct 2015 16:13:38 -0000
- Subject: [binutils-gdb] Add cast in python.c
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=db0f0d0c1d0541b6c2f81d655cd5420e059c91d4
commit db0f0d0c1d0541b6c2f81d655cd5420e059c91d4
Author: Simon Marchi <simon.marchi@ericsson.com>
Date: Thu Oct 22 12:13:19 2015 -0400
Add cast in python.c
gdb/ChangeLog:
* python/python.c (_initialize_python): Add cast.
Diff:
---
gdb/ChangeLog | 4 ++++
gdb/python/python.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7dba15d..fe8edb5 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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>
diff --git a/gdb/python/python.c b/gdb/python/python.c
index 1c2d5c6..6cbe5f0 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -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");