From 1ca51e905b4eafc207d011e575d9dbd7cebf2846 Mon Sep 17 00:00:00 2001 From: Lisandro Dalcin Date: Fri, 30 Nov 2018 00:44:39 +0300 Subject: [PATCH] Silence GCC -Wconversion warnings --- khash.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/khash.h b/khash.h index f75f3474..885d6568 100644 --- a/khash.h +++ b/khash.h @@ -165,10 +165,10 @@ typedef khint_t khiter_t; #define __ac_isempty(flag, i) ((flag[i>>4]>>((i&0xfU)<<1))&2) #define __ac_isdel(flag, i) ((flag[i>>4]>>((i&0xfU)<<1))&1) #define __ac_iseither(flag, i) ((flag[i>>4]>>((i&0xfU)<<1))&3) -#define __ac_set_isdel_false(flag, i) (flag[i>>4]&=~(1ul<<((i&0xfU)<<1))) -#define __ac_set_isempty_false(flag, i) (flag[i>>4]&=~(2ul<<((i&0xfU)<<1))) -#define __ac_set_isboth_false(flag, i) (flag[i>>4]&=~(3ul<<((i&0xfU)<<1))) -#define __ac_set_isdel_true(flag, i) (flag[i>>4]|=1ul<<((i&0xfU)<<1)) +#define __ac_set_isdel_false(flag, i) (flag[i>>4]&=(khint32_t)~(1ul<<((i&0xfU)<<1))) +#define __ac_set_isempty_false(flag, i) (flag[i>>4]&=(khint32_t)~(2ul<<((i&0xfU)<<1))) +#define __ac_set_isboth_false(flag, i) (flag[i>>4]&=(khint32_t)~(3ul<<((i&0xfU)<<1))) +#define __ac_set_isdel_true(flag, i) (flag[i>>4]|=(khint32_t)(1ul<<((i&0xfU)<<1))) #define __ac_fsize(m) ((m) < 16? 1 : (m)>>4)