]> granicus.if.org Git - clang/commitdiff
Fix MSVC warning: <unsafe use of type 'bool' in operation>
authorFrancois Pichet <pichet2000@gmail.com>
Wed, 25 May 2011 16:07:10 +0000 (16:07 +0000)
committerFrancois Pichet <pichet2000@gmail.com>
Wed, 25 May 2011 16:07:10 +0000 (16:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132058 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/TypePrinter.cpp

index aad97fb9fc21bba3715098652e0c2eb36b4b852f..4519606f6e8211350b34a97ea3e653b17ef777e1 100644 (file)
@@ -978,7 +978,7 @@ TemplateSpecializationType::PrintTemplateArgumentList(
     SpecString += '<';
   
   for (unsigned Arg = 0; Arg < NumArgs; ++Arg) {
-    if (SpecString.size() > !SkipBrackets)
+    if (SpecString.size() > unsigned(!SkipBrackets))
       SpecString += ", ";
     
     // Print the argument into a string.