diff options
| author | Ulrich Drepper <[email protected]> | 2008-01-18 19:59:08 +0000 |
|---|---|---|
| committer | Ulrich Drepper <[email protected]> | 2008-01-18 19:59:08 +0000 |
| commit | 35f08c4d52d0ffd9f8aa50f47b84de5603842b1f (patch) | |
| tree | 7def9d6d4ef3ffea169252d44325cb039294129d /libdw/dwarf_haschildren.c | |
| parent | 4173bd8d5dd43413ba0635e2a74bc57a9478fb13 (diff) | |
propagate from branch 'com.redhat.elfutils.nickc.pending' (head 28d6423325f0cc14a133eb6b92a8c3604e437ba6)
to branch 'com.redhat.elfutils' (head 6ef48518ed8497626058574c787852bd939d46ee)
Diffstat (limited to 'libdw/dwarf_haschildren.c')
| -rw-r--r-- | libdw/dwarf_haschildren.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libdw/dwarf_haschildren.c b/libdw/dwarf_haschildren.c index 7b21f690..fe431955 100644 --- a/libdw/dwarf_haschildren.c +++ b/libdw/dwarf_haschildren.c @@ -62,7 +62,7 @@ dwarf_haschildren (die) { /* Find the abbreviation entry. */ Dwarf_Abbrev *abbrevp = die->abbrev; - if (abbrevp != (Dwarf_Abbrev *) -1l) + if (abbrevp != DWARF_END_ABBREV) { const unsigned char *readp = (unsigned char *) die->addr; @@ -72,9 +72,9 @@ dwarf_haschildren (die) get_uleb128 (abbrev_code, readp); abbrevp = __libdw_findabbrev (die->cu, abbrev_code); - die->abbrev = abbrevp ?: (Dwarf_Abbrev *) -1l; + die->abbrev = abbrevp ?: DWARF_END_ABBREV; } - if (unlikely (die->abbrev == (Dwarf_Abbrev *) -1l)) + if (unlikely (die->abbrev == DWARF_END_ABBREV)) { __libdw_seterrno (DWARF_E_INVALID_DWARF); return 0; |
