aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python/python.c')
-rw-r--r--gdb/python/python.c2
1 files changed, 1 insertions, 1 deletions
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");