From c47fa9c2cee8c1185749e8bbe0dc72a442a473b3 Mon Sep 17 00:00:00 2001 From: Dodji Seketeli Date: Mon, 3 Jul 2017 16:30:17 +0200 Subject: [PATCH] Fix a typo when reporting size change wrt a decl-only class When a class is compared to its decl-only counterpart, if the user doesn't want to see decl-only class related change, then do not report any size change that might result from it. This was already meant to be implemented but there was a typo. Fixed thus. * src/abg-comparison.cc (report_size_and_alignment_changes): Fix typo. Signed-off-by: Dodji Seketeli --- src/abg-comparison.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/abg-comparison.cc b/src/abg-comparison.cc index 32665b23..8747e0c2 100644 --- a/src/abg-comparison.cc +++ b/src/abg-comparison.cc @@ -3155,7 +3155,7 @@ report_size_and_alignment_changes(type_or_decl_base_sptr first, second_class = is_class_or_union_type(second); if (filtering::has_class_decl_only_def_change(first_class, second_class) - && !ctxt->get_allowed_category() & CLASS_DECL_ONLY_DEF_CHANGE_CATEGORY) + && !(ctxt->get_allowed_category() & CLASS_DECL_ONLY_DEF_CHANGE_CATEGORY)) // So these two classes differ only by the fact that one is the // declaration-only form of the second. And the user asked that // this kind of change be filtered out, so do not report any size -- 2.43.5