public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM] tromey/python: Fix C++ compilation for python3.
@ 2016-07-03 16:19 jkratoch
0 siblings, 0 replies; only message in thread
From: jkratoch @ 2016-07-03 16:19 UTC (permalink / raw)
To: archer-commits
The branch, tromey/python has been updated
via 5e8c6e345d63e61d3c31e67a55db25a6824787b2 (commit)
from eb8923695844762b85211cc23a36c6ffa7b875d6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 5e8c6e345d63e61d3c31e67a55db25a6824787b2
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun Jul 3 18:18:56 2016 +0200
Fix C++ compilation for python3.
-----------------------------------------------------------------------
Summary of changes:
gdb/python/python.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
First 500 lines of diff:
diff --git a/gdb/python/python.c b/gdb/python/python.c
index 8fd3efd..e7e61cf 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -1304,7 +1304,7 @@ run_python_script (int argc, char **argv)
PySys_SetArgv (argc - 1, argv + 1);
#else
{
- wchar_t **wargv = alloca (sizeof (*wargv) * (argc + 1));
+ wchar_t **wargv = (wchar_t **) alloca (sizeof (*wargv) * (argc + 1));
int i;
for (i = 1; i < argc; i++)
@@ -1318,7 +1318,7 @@ run_python_script (int argc, char **argv)
i, argv[i]);
exit (1);
}
- wargv[i] = alloca (sizeof (**wargv) * (len + 1));
+ wargv[i] = (wchar_t *) alloca (sizeof (**wargv) * (len + 1));
len2 = mbstowcs (wargv[i], argv[i], len + 1);
assert (len2 == len);
}
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-07-03 16:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-03 16:19 [SCM] tromey/python: Fix C++ compilation for python3 jkratoch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).