[cfe-commits] r160097 - /cfe/trunk/lib/AST/CommentSema.cpp
NAKAMURA Takumi
geek4civic at gmail.com
Wed Jul 11 17:45:09 PDT 2012
Author: chapuni
Date: Wed Jul 11 19:45:08 2012
New Revision: 160097
URL: http://llvm.org/viewvc/llvm-project?rev=160097&view=rev
Log:
AST/CommentSema.cpp: Fix signess in abs() to appease msvc. It would not make sense to pass (unsigned)-(unsigned) to abs().
Modified:
cfe/trunk/lib/AST/CommentSema.cpp
Modified: cfe/trunk/lib/AST/CommentSema.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/CommentSema.cpp?rev=160097&r1=160096&r2=160097&view=diff
==============================================================================
--- cfe/trunk/lib/AST/CommentSema.cpp (original)
+++ cfe/trunk/lib/AST/CommentSema.cpp Wed Jul 11 19:45:08 2012
@@ -390,7 +390,8 @@
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;
More information about the cfe-commits
mailing list