[cfe-commits] r45977 - /cfe/trunk/Sema/SemaDecl.cpp

Chris Lattner sabre at nondot.org
Mon Jan 14 13:47:29 PST 2008


Author: lattner
Date: Mon Jan 14 15:47:29 2008
New Revision: 45977

URL: http://llvm.org/viewvc/llvm-project?rev=45977&view=rev
Log:
Fix build issue on cygwin, patch by Sam Bishop

Modified:
    cfe/trunk/Sema/SemaDecl.cpp

Modified: cfe/trunk/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/SemaDecl.cpp?rev=45977&r1=45976&r2=45977&view=diff

==============================================================================
--- cfe/trunk/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/Sema/SemaDecl.cpp Mon Jan 14 15:47:29 2008
@@ -1509,9 +1509,11 @@
     
     // Keep track of the size of positive and negative values.
     if (InitVal.isUnsigned() || !InitVal.isNegative())
-      NumPositiveBits = std::max(NumPositiveBits, InitVal.getActiveBits());
+      NumPositiveBits = std::max(NumPositiveBits,
+                                 (unsigned)InitVal.getActiveBits());
     else
-      NumNegativeBits = std::max(NumNegativeBits, InitVal.getMinSignedBits());
+      NumNegativeBits = std::max(NumNegativeBits,
+                                 (unsigned)InitVal.getMinSignedBits());
 
     // Keep track of whether every enum element has type int (very commmon).
     if (AllElementsInt)





More information about the cfe-commits mailing list