From a2e518daf51de2cb548786b37a7d6e55ac8ffd67 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Wed, 26 Aug 2020 12:14:37 +0200 Subject: [PATCH] Fix the documentation of has_even_parity The documentation had the boolean meaning of the return value inverted. Signed-off-by: Gilles Peskine --- tests/suites/test_suite_psa_crypto_metadata.function | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/suites/test_suite_psa_crypto_metadata.function b/tests/suites/test_suite_psa_crypto_metadata.function index 2c069835a2..7c0929e299 100644 --- a/tests/suites/test_suite_psa_crypto_metadata.function +++ b/tests/suites/test_suite_psa_crypto_metadata.function @@ -67,7 +67,7 @@ * * The expected parity is even so that 0 is considered a valid encoding. * - * Return 0 if value has even parity and a nonzero value otherwise. */ + * Return a nonzero value if value has even parity and 0 otherwise. */ int has_even_parity( uint32_t value ) { value ^= value >> 16;