Fix a problem noticed by gcc-4.4:

warning: comparison is always true due to limited range of data type.

llvm-svn: 79642
This commit is contained in:
Duncan Sands 2009-08-21 17:16:10 +00:00
parent 3ede522ca9
commit 08b437d600
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ std::string PIC16TargetObjectFile::getNameForFunctFrame(const Function *F,
if (F->hasSection()) {
std::string Sectn = F->getSection();
std::string StrToFind = "Overlay=";
unsigned Pos = Sectn.find(StrToFind);
size_t Pos = Sectn.find(StrToFind);
if (Pos != std::string::npos) {
Pos += StrToFind.length();
std::string Color = "";