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)



On Jul 19, 2005, at 9:02 PM, Mark Mitchell wrote:


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.

Woops I had tested convert_to_integer but when I was going to commit it, I had copied and pasted the above function name.

I committed this (as obvious) to fix that bug.

Thanks,
Andrew Pinski

2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>

* class.c (build_base_path): Fix typo.


Attachment: t.diff.txt
Description: Text document


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