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:
Dodji Seketeli 2014-02-28 12:35:36 +01:00
parent 6407c66fc6
commit d5f37ea7f4

View File

@ -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;
}