Fix signed/unsigned warning

llvm-svn: 315149
This commit is contained in:
Simon Pilgrim 2017-10-07 12:24:10 +00:00
parent 5e030f9cdc
commit a3aa724fb7
1 changed files with 1 additions and 1 deletions

View File

@ -616,7 +616,7 @@ public:
// Right now the overloaded candidates seem to be provided in a "best fit"
// order, so I'm not too worried about this.
SigHelp.activeSignature = 0;
assert(CurrentArg <= std::numeric_limits<int>::max() &&
assert(CurrentArg <= (unsigned)std::numeric_limits<int>::max() &&
"too many arguments");
SigHelp.activeParameter = static_cast<int>(CurrentArg);
for (unsigned I = 0; I < NumCandidates; ++I) {