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 <wk@gnupg.org>
This commit is contained in:
Werner Koch 2016-12-07 23:25:50 +01:00
parent 7880335273
commit ecb0e3280a
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View 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..
@}