Changes in directory llvm/include/llvm/ADT:

SmallVector.h updated: 1.11 -> 1.12
---
Log message:

avoid a warning


---
Diffs of the changes:  (+1 -1)

 SmallVector.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/include/llvm/ADT/SmallVector.h
diff -u llvm/include/llvm/ADT/SmallVector.h:1.11 
llvm/include/llvm/ADT/SmallVector.h:1.12
--- llvm/include/llvm/ADT/SmallVector.h:1.11    Fri Aug 11 18:40:23 2006
+++ llvm/include/llvm/ADT/SmallVector.h Mon Aug 14 16:47:50 2006
@@ -196,7 +196,7 @@
   
   // If we have to grow to have enough elements, destroy the current elements.
   // This allows us to avoid copying them during the grow.
-  if (Capacity-Begin < RHSSize) {
+  if (unsigned(Capacity-Begin) < RHSSize) {
     // Destroy current elements.
     for (iterator I = Begin, E = End; I != E; ++I)
       I->~T();



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to