public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
From: jkratoch@sourceware.org
To: archer-commits@sourceware.org
Subject: [SCM]  tromey/python: Fix C++ compilation for python3.
Date: Sun, 03 Jul 2016 16:19:00 -0000	[thread overview]
Message-ID: <20160703161913.50573.qmail@sourceware.org> (raw)

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.


                 reply	other threads:[~2016-07-03 16:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160703161913.50573.qmail@sourceware.org \
    --to=jkratoch@sourceware.org \
    --cc=archer-commits@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).