From: Heikki Linnakangas Date: Tue, 2 Sep 2014 11:22:42 +0000 (+0300) Subject: Silence warning on new versions of clang. X-Git-Tag: REL9_4_BETA3~67 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ea591ed4619a29e57369fef905d2160bd6e5438;p=postgresql Silence warning on new versions of clang. Andres Freund --- diff --git a/src/include/access/gin_private.h b/src/include/access/gin_private.h index 3baa9f5e1a..ab3afb812e 100644 --- a/src/include/access/gin_private.h +++ b/src/include/access/gin_private.h @@ -220,7 +220,7 @@ typedef signed char GinNullCategory; #define GinSetPostingTree(itup, blkno) ( GinSetNPosting((itup),GIN_TREE_POSTING), ItemPointerSetBlockNumber(&(itup)->t_tid, blkno) ) #define GinGetPostingTree(itup) GinItemPointerGetBlockNumber(&(itup)->t_tid) -#define GIN_ITUP_COMPRESSED (1 << 31) +#define GIN_ITUP_COMPRESSED (1U << 31) #define GinGetPostingOffset(itup) (GinItemPointerGetBlockNumber(&(itup)->t_tid) & (~GIN_ITUP_COMPRESSED)) #define GinSetPostingOffset(itup,n) ItemPointerSetBlockNumber(&(itup)->t_tid,(n)|GIN_ITUP_COMPRESSED) #define GinGetPosting(itup) ((Pointer) ((char*)(itup) + GinGetPostingOffset(itup)))