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;