Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[secp256k1]refactor: Use (int)&(int) in boolean context to avoid comp…
…iler warning Summary: This fixes a compiler warning: ``` ./src/ecdsa_impl.h:312:12: warning: use of bitwise '&' with boolean operands [-Wbitwise-instead-of-logical] return !secp256k1_scalar_is_zero(sigr) & !secp256k1_scalar_is_zero(sigs); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` This is a backport of [[bitcoin-core/secp256k1#1009 | secp256k1#1009]] Test Plan: With clang14: `ninja all check-all` Reviewers: #bitcoin_abc, Fabien Reviewed By: #bitcoin_abc, Fabien Differential Revision: https://reviews.bitcoinabc.org/D10735
- Loading branch information