Ticket #11561: 0003-Removed-unsigned-comparison-to-zero-CID-611234.patch

File 0003-Removed-unsigned-comparison-to-zero-CID-611234.patch, 919 bytes (added by tgkokk, 9 years ago)
  • src/apps/debugger/dwarf/DwarfFile.cpp

    From 815df2627f416de4eb6221bc2f282c0fbdd4c59f Mon Sep 17 00:00:00 2001
    From: Theodore Kokkoris <t.kokkoris@gmail.com>
    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 8d4ec5a..f918b86 100644
    a b DwarfFile::ResolveRangeList(CompilationUnit* unit, uint64 offset) const  
    712712    if (unit == NULL || fDebugRangesSection == NULL)
    713713        return NULL;
    714714
    715     if (offset < 0 || offset >= (uint64)fDebugRangesSection->Size())
     715    if (offset >= (uint64)fDebugRangesSection->Size())
    716716        return NULL;
    717717
    718718    TargetAddressRangeList* ranges = new(std::nothrow) TargetAddressRangeList;