From 26f8b99b248aae989e63ca0969a746f30b0c8c21 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Tue, 2 Sep 2014 14:22:42 +0300 Subject: [PATCH] Silence warning on new versions of clang. Andres Freund --- src/include/access/gin_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))) -- 2.40.0