]> git.ipfire.org Git - thirdparty/openssl.git/commit
test: placate Clang's --Wbitwise-instead-of-logical
authorSam James <sam@gentoo.org>
Fri, 24 Jun 2022 07:12:00 +0000 (08:12 +0100)
committerPauli <pauli@openssl.org>
Mon, 27 Jun 2022 01:43:47 +0000 (11:43 +1000)
commit6162a2402d6b47c597c271bfb6a67d64bf183383
treeab4e9b406dce4c8f51afff328cc644307446486f
parent712c13c57b97e2e25ca23048f3ba6f50115cacd7
test: placate Clang's --Wbitwise-instead-of-logical

```
test/test_test.c:58:9: note: cast one or both operands to int to silence this warning
test/test_test.c:58:9: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical]
    if (!TEST(1, TEST_uint_eq(3u, 3u))
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
test/test_test.c:58:9: note: cast one or both operands to int to silence this warning
```

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18639)
test/test_test.c