[Pkg-gnupg-commit] [gpgme] 11/132: doc: Let's suggest GNU guidelines for bit checking.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Apr 26 01:00:47 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch experimental
in repository gpgme.

commit ecb0e3280a7db0e8f6ef395cf64f36a36b15be37
Author: Werner Koch <wk at gnupg.org>
Date:   Wed Dec 7 23:25:50 2016 +0100

    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 at gnupg.org>
---
 doc/gpgme.texi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/gpgme.texi b/doc/gpgme.texi
index ee82b27..511384f 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..
 @}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git



More information about the Pkg-gnupg-commit mailing list