From: Dodji Seketeli Date: Mon, 3 Jul 2017 14:30:17 +0000 (+0200) Subject: Fix a typo when reporting size change wrt a decl-only class X-Git-Tag: upstream/1.0~46 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c47fa9c2cee8c1185749e8bbe0dc72a442a473b3;p=platform%2Fupstream%2Flibabigail.git 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 --- 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