mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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
This commit is contained in:
parent
cda9706cb7
commit
1c3858a06c
@ -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 = "";
|
||||
|
Loading…
Reference in New Issue
Block a user