mirror of
git://sourceware.org/git/libabigail.git
synced 2025-02-05 16:22:05 +00:00
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:
parent
241166a601
commit
6407c66fc6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user