Fix a typo when reporting size change wrt a decl-only class
authorDodji Seketeli <dodji@redhat.com>
Mon, 3 Jul 2017 14:30:17 +0000 (16:30 +0200)
committerDodji Seketeli <dodji@redhat.com>
Tue, 4 Jul 2017 14:47:43 +0000 (16:47 +0200)
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 <dodji@redhat.com>
src/abg-comparison.cc

index 32665b23665e019814fff75dc17e94968e17dfd2..8747e0c2c86ccbc7749af2debbe5112035bd7855 100644 (file)
@@ -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