diff options
author | Duncan Sands <baldrick@free.fr> | 2009-08-21 17:16:10 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-08-21 17:16:10 +0000 |
commit | 1c3858a06cdd25d4247177aa0b4ca0a2c1de67cd (patch) | |
tree | 6091f1857dc8192a14d7c790fca0d3a7f1f9e856 /lib/Target/PIC16/PIC16TargetObjectFile.cpp | |
parent | cda9706cb74a65d2feb2175613cb0fe46acc5aa2 (diff) |
Fix a problem noticed by gcc-4.4:
warning: comparison is always true due to limited range of data type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79642 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PIC16/PIC16TargetObjectFile.cpp')
-rw-r--r-- | lib/Target/PIC16/PIC16TargetObjectFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PIC16/PIC16TargetObjectFile.cpp b/lib/Target/PIC16/PIC16TargetObjectFile.cpp index 4c2349f9ee..b3c435e85c 100644 --- a/lib/Target/PIC16/PIC16TargetObjectFile.cpp +++ b/lib/Target/PIC16/PIC16TargetObjectFile.cpp @@ -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 = ""; |