]> granicus.if.org Git - clang/commitdiff
AST/CommentSema.cpp: Fix signess in abs() to appease msvc. It would not make sense...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 12 Jul 2012 00:45:08 +0000 (00:45 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 12 Jul 2012 00:45:08 +0000 (00:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160097 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/CommentSema.cpp

index 72b0af3436c634b9f1dc5d96ce613ddd2cc010bc..ae13fa285ad3f513c8d646fa1ff5694104b0caf0 100644 (file)
@@ -390,7 +390,8 @@ unsigned Sema::correctTypoInParmVarReference(
     const IdentifierInfo *II = ParamVars[i]->getIdentifier();
     if (II) {
       StringRef Name = II->getName();
-      unsigned MinPossibleEditDistance = abs(Name.size() - Typo.size());
+      unsigned MinPossibleEditDistance =
+        abs((int)Name.size() - (int)Typo.size());
       if (MinPossibleEditDistance > 0 &&
           Typo.size() / MinPossibleEditDistance < 3)
         continue;