From f78b08d8465758f029c2627b1359053325647bbe Mon Sep 17 00:00:00 2001 From: Theodore Kokkoris Date: Wed, 3 Dec 2014 15:27:47 +0000 Subject: [PATCH] Removed unsigned comparison to zero (CID: 611234) --- src/apps/debugger/dwarf/DwarfFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/debugger/dwarf/DwarfFile.cpp b/src/apps/debugger/dwarf/DwarfFile.cpp index 8d4ec5ab42..f918b862b7 100644 --- a/src/apps/debugger/dwarf/DwarfFile.cpp +++ b/src/apps/debugger/dwarf/DwarfFile.cpp @@ -712,7 +712,7 @@ DwarfFile::ResolveRangeList(CompilationUnit* unit, uint64 offset) const if (unit == NULL || fDebugRangesSection == NULL) return NULL; - if (offset < 0 || offset >= (uint64)fDebugRangesSection->Size()) + if (offset >= (uint64)fDebugRangesSection->Size()) return NULL; TargetAddressRangeList* ranges = new(std::nothrow) TargetAddressRangeList;