]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Fix dwarf::ranges::const_iterator::operator* end-case check.
authorRoland McGrath <roland@redhat.com>
Wed, 4 Feb 2009 23:58:41 +0000 (15:58 -0800)
committerRoland McGrath <roland@redhat.com>
Wed, 4 Feb 2009 23:58:41 +0000 (15:58 -0800)
libdw/c++/dwarf

index c79a77c09e3af5630ba6ac952bab8b789389001f..4f5eb69fe91daafd8952014126b3aa03e49169db 100644 (file)
@@ -1836,7 +1836,7 @@ namespace elfutils
 
        inline value_type operator* () const
        {
-         if (unlikely (_m_offset == 1))
+         if (unlikely (_m_offset == 0))
            throw std::runtime_error ("dereferencing end iterator");
          return std::make_pair (_m_begin, _m_end);
        }