forked from OSchip/llvm-project
AST/CommentSema.cpp: Fix signess in abs() to appease msvc. It would not make sense to pass (unsigned)-(unsigned) to abs().
llvm-svn: 160097
This commit is contained in:
parent
7073024ffd
commit
0e449c4e54
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue