From ecb0e3280a7db0e8f6ef395cf64f36a36b15be37 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 7 Dec 2016 23:25:50 +0100 Subject: [PATCH] doc: Let's suggest GNU guidelines for bit checking. -- While educating students we can also get them to use useful habits, in particular to parenthese bit tests. Signed-off-by: Werner Koch --- doc/gpgme.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/gpgme.texi b/doc/gpgme.texi index ee82b273..511384f9 100644 --- a/doc/gpgme.texi +++ b/doc/gpgme.texi @@ -4952,7 +4952,7 @@ signature is valid without any restrictions. This means that you can check for GPGME_SIGSUM_VALID like this: @example -if (sig.summary & GPGME_SIGSUM_VALID) +if ((sig.summary & GPGME_SIGSUM_VALID)) @{ ..do stuff if valid.. @}