Commit 01f8c6af authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Fix warning: & has lower precedence than ==; == will be evaluated first

parent 99ec41cb
Pipeline #61663 passed with stage
in 13 minutes and 50 seconds
...@@ -105,11 +105,11 @@ int SelectCertificateCommand::doStart() ...@@ -105,11 +105,11 @@ int SelectCertificateCommand::doStart()
opts |= option_table[i].option; opts |= option_table[i].option;
} }
} }
if (opts & CertificateSelectionDialog::AnyCertificate == 0) { if ((opts & CertificateSelectionDialog::AnyCertificate) == 0) {
// neither sign-only nor encrypt-only => any usage // neither sign-only nor encrypt-only => any usage
opts |= CertificateSelectionDialog::AnyCertificate; opts |= CertificateSelectionDialog::AnyCertificate;
} }
if (opts & CertificateSelectionDialog::AnyFormat == 0) { if ((opts & CertificateSelectionDialog::AnyFormat) == 0) {
// neither openpgp-only nor x509-only => any protocol // neither openpgp-only nor x509-only => any protocol
opts |= CertificateSelectionDialog::AnyFormat; opts |= CertificateSelectionDialog::AnyFormat;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment