This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
Re: RFA: Fix a 64-bit pointer to integer-of-a-different-size cast error
- From: Kevin Buettner <kevinb at redhat dot com>
- To: insight at sourceware dot org
- Date: Mon, 2 Mar 2009 15:47:50 -0700
- Subject: Re: RFA: Fix a 64-bit pointer to integer-of-a-different-size cast error
- References: <20090226152436.18951613@redhat.com>
On Thu, 26 Feb 2009 15:24:36 -0700
Kevin Buettner <kevinb@redhat.com> wrote:
> - arguments = (int) clientData;
> + arguments = (int) (long) clientData;
After some off-list discussion, Keith and I agreed on the following
patch instead:
* generic/gdbtk-stack.c (gdb_get_vars_command): Revise cast of
`clientData' to avoid build error on 64-bit hosts.
Index: generic/gdbtk-stack.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-stack.c,v
retrieving revision 1.31
diff -u -p -r1.31 gdbtk-stack.c
--- generic/gdbtk-stack.c 27 Oct 2008 18:40:12 -0000 1.31
+++ generic/gdbtk-stack.c 2 Mar 2009 22:39:12 -0000
@@ -285,7 +285,7 @@ gdb_get_vars_command (ClientData clientD
return TCL_ERROR;
}
- arguments = (int) clientData;
+ arguments = (long) clientData;
/* Initialize the result pointer to an empty list. */
This patch has been committed.
Kevin