Removed unsigned comparison to zero (CID: 611234)

This commit is contained in:
Theodore Kokkoris 2014-12-03 15:27:47 +00:00 committed by Adrien Destugues
parent 249a4944c3
commit f78b08d846

View File

@ -712,7 +712,7 @@ DwarfFile::ResolveRangeList(CompilationUnit* unit, uint64 offset) const
if (unit == NULL || fDebugRangesSection == NULL) if (unit == NULL || fDebugRangesSection == NULL)
return NULL; return NULL;
if (offset < 0 || offset >= (uint64)fDebugRangesSection->Size()) if (offset >= (uint64)fDebugRangesSection->Size())
return NULL; return NULL;
TargetAddressRangeList* ranges = new(std::nothrow) TargetAddressRangeList; TargetAddressRangeList* ranges = new(std::nothrow) TargetAddressRangeList;