This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [PATCH] Fix one type mismatch in the C++ front-end (PR 22358)


Andrew Pinski wrote:

Index: class.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/class.c,v
retrieving revision 1.726
diff -u -p -r1.726 class.c
--- class.c	8 Jul 2005 23:36:55 -0000	1.726
+++ class.c	12 Jul 2005 17:15:34 -0000
@@ -365,7 +365,7 @@ build_base_path (enum tree_code code,
 			 build2 (EQ_EXPR, boolean_type_node,
 				 current_in_charge_parm, integer_zero_node),
 			 v_offset,
-			 BINFO_OFFSET (binfo));
+			 convert (ptrdiff_type_node, BINFO_OFFSET (binfo)));

That should be convet_to_integer.


OK with that change.

--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304


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