[llvm-commits] [llvm] r79642 - /llvm/trunk/lib/Target/PIC16/PIC16TargetObjectFile.cpp
Duncan Sands
baldrick at free.fr
Fri Aug 21 10:16:10 PDT 2009
Author: baldrick
Date: Fri Aug 21 12:16:10 2009
New Revision: 79642
URL: http://llvm.org/viewvc/llvm-project?rev=79642&view=rev
Log:
Fix a problem noticed by gcc-4.4:
warning: comparison is always true due to limited range of data type.
Modified:
llvm/trunk/lib/Target/PIC16/PIC16TargetObjectFile.cpp
Modified: llvm/trunk/lib/Target/PIC16/PIC16TargetObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PIC16/PIC16TargetObjectFile.cpp?rev=79642&r1=79641&r2=79642&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PIC16/PIC16TargetObjectFile.cpp (original)
+++ llvm/trunk/lib/Target/PIC16/PIC16TargetObjectFile.cpp Fri Aug 21 12:16:10 2009
@@ -88,7 +88,7 @@
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 = "";
More information about the llvm-commits
mailing list