[Pkg-gnupg-commit] [gnupg2] 147/159: sm: small fix for GCC 6.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Jan 27 13:24:04 UTC 2016


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

dkg pushed a commit to branch master
in repository gnupg2.

commit d33a34004bef028068538f099c32a0e292a004c3
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Tue Jan 26 11:00:53 2016 +0900

    sm: small fix for GCC 6.
    
    * sm/export.c (insert_duptable): Use unsigned 0.
    
    --
    
    We can silence message with -Wshift-negative-value.
    
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
---
 sm/export.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sm/export.c b/sm/export.c
index 1dce106..d3dc9b9 100644
--- a/sm/export.c
+++ b/sm/export.c
@@ -103,7 +103,7 @@ insert_duptable (duptable_t *table, unsigned char *fpr, int *exists)
 #error cannot handle a table larger than 16 bits or smaller than 8 bits
 #elif DUPTABLE_BITS > 8
   idx <<= (DUPTABLE_BITS - 8);
-  idx |= (fpr[1] & ~(~0 << 4));
+  idx |= (fpr[1] & ~(~0U << 4));
 #endif
 
   for (t = table[idx]; t; t = t->next)

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



More information about the Pkg-gnupg-commit mailing list