Merge "Fix Wbitwise-instead-of-logical introduced by clang-r445002" am: 9f165ca3e1 am: 665796dd6d am: bdd7c5eb53

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1961919

Change-Id: Ic3fbab8ee074d96b4d02ee815398e128bca180c8
This commit is contained in:
Pirama Arumuga Nainar
2022-01-28 21:05:30 +00:00
committed by Automerger Merge Worker

View File

@@ -280,7 +280,7 @@ void ReportFile::addReport(const IncidentReportArgs& args) {
// Lower privacy policy (less restrictive) wins.
report->set_privacy_policy(args.getPrivacyPolicy());
}
report->set_all_sections(report->all_sections() | args.all());
report->set_all_sections(report->all_sections() || args.all());
for (int section: args.sections()) {
if (!has_section(*report, section)) {
report->add_section(section);