This is the mail archive of the insight@sourceware.org mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: Fix a 64-bit pointer to integer-of-a-different-size cast error


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]