Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix '-Wbitwise-instead-of-logical' in fbpcf/engine/SecretShareEngine.cpp #465

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jan 7, 2023

  1. Fix '-Wbitwise-instead-of-logical' in fbpcf/engine/SecretShareEngine.cpp

    Summary:
    LLVM-15 requires that we differentiate between `&&` and `&` as well as `||` and `|`. Logical operations are done with `&&` and `||` and bitwise operations are done with `&` and `|`. Confusing the two makes code harder to read and may lead to subtle bugs.
    
     - If you approve of this diff, please use the "Accept & Ship" button :-)
    
    Reviewed By: dmm-fb
    
    Differential Revision: D42374505
    
    fbshipit-source-id: 7d4a3d7a70b0acf5603ece36b53ea556d695303f
    r-barnes authored and facebook-github-bot committed Jan 7, 2023
    Configuration menu
    Copy the full SHA
    c4df9a4 View commit details
    Browse the repository at this point in the history