From d33a34004bef028068538f099c32a0e292a004c3 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Tue, 26 Jan 2016 11:00:53 +0900 Subject: 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 --- sm/export.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sm/export.c') 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) -- cgit v1.2.3