doc: Let's suggest GNU guidelines for bit checking.
authorWerner Koch <wk@gnupg.org>
Wed, 7 Dec 2016 22:25:50 +0000 (23:25 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 7 Dec 2016 22:25:50 +0000 (23:25 +0100)
--

While educating students we can also get them to use useful habits, in
particular to parenthese bit tests.

Signed-off-by: Werner Koch <wk@gnupg.org>
doc/gpgme.texi

index ee82b27..511384f 100644 (file)
@@ -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..
 @}