mirror of
git://sourceware.org/git/libabigail.git
synced 2025-02-05 16:22:05 +00:00
Fix calculation of the length of distinct_diff
* src/abg-comparison.cc (distinct_diff::length): Also perform a deep comparison here. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
6407c66fc6
commit
d5f37ea7f4
@ -301,7 +301,9 @@ distinct_diff::entities_are_of_distinct_kinds(decl_base_sptr first,
|
||||
unsigned
|
||||
distinct_diff::length() const
|
||||
{
|
||||
if (first() == second())
|
||||
if (first() == second()
|
||||
|| (first() && second()
|
||||
&& *first() == *second()))
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user