sm: small fix for GCC 6.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 26 Jan 2016 02:00:53 +0000 (11:00 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 26 Jan 2016 02:00:53 +0000 (11:00 +0900)
* sm/export.c (insert_duptable): Use unsigned 0.

--

We can silence message with -Wshift-negative-value.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
sm/export.c

index 1dce106..d3dc9b9 100644 (file)
@@ -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)