summaryrefslogtreecommitdiffstats
path: root/sm/export.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2016-01-26 03:00:53 +0100
committerNIIBE Yutaka <gniibe@fsij.org>2016-01-26 03:00:53 +0100
commitd33a34004bef028068538f099c32a0e292a004c3 (patch)
treeb2fdae470d358c8f50329f0be551441c20b38b74 /sm/export.c
parentgpg: Print PROGRESS status lines during key generation. (diff)
downloadgnupg2-d33a34004bef028068538f099c32a0e292a004c3.tar.xz
gnupg2-d33a34004bef028068538f099c32a0e292a004c3.zip
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@fsij.org>
Diffstat (limited to 'sm/export.c')
-rw-r--r--sm/export.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sm/export.c b/sm/export.c
index 1dce106a1..d3dc9b98a 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)