Fix diff length calculation for typedef diffs

* src/abg-comparison.cc (typedef_diff::length): Just use
	comparison for this.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2014-02-28 12:11:41 +01:00
parent 241166a601
commit 6407c66fc6

View File

@ -4038,9 +4038,8 @@ typedef_diff::underlying_type_diff(const diff_sptr d)
unsigned
typedef_diff::length() const
{
if (!underlying_type_diff())
return 0;
return underlying_type_diff()->length();
return !(*first_typedef_decl() ==
static_cast<decl_base>(*second_typedef_decl()));
}
/// Reports the difference between the two subjects of the diff in a