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]

[gcc-in-cxx] Another cast to enum type


I committed another cast to enum type to the gcc-in-cxx branch.

Ian


2009-02-06  Ian Lance Taylor  <iant@google.com>

	* decl2.c (constrain_visibility): Add cast to enum type.


Index: cp/decl2.c
===================================================================
--- cp/decl2.c	(revision 143890)
+++ cp/decl2.c	(working copy)
@@ -1857,7 +1857,7 @@ constrain_visibility (tree decl, int vis
   else if (visibility > DECL_VISIBILITY (decl)
 	   && !DECL_VISIBILITY_SPECIFIED (decl))
     {
-      DECL_VISIBILITY (decl) = visibility;
+      DECL_VISIBILITY (decl) = (symbol_visibility) visibility;
       return true;
     }
   return false;

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