]> granicus.if.org Git - postgresql/commitdiff
Silence warning on new versions of clang.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 2 Sep 2014 11:22:42 +0000 (14:22 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 2 Sep 2014 11:23:38 +0000 (14:23 +0300)
Andres Freund

src/include/access/gin_private.h

index 3baa9f5e1afc1277366043f6c41b6d4ce3c7fec7..ab3afb812e0f7425bea2b86305f371400a77c24a 100644 (file)
@@ -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)))