Skip to content

Commit 90051cd

Browse files
Silence nbtree.h cpluspluscheck warning.
Add a cast to size_t to silence "comparison between signed and unsigned integer expressions" cpluspluscheck warning. Reported-By: Tom Lane Discussion: https://postgr.es/m/7971.1583171266@sss.pgh.pa.us
1 parent 77b88bd commit 90051cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/include/access/nbtree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ static inline void
381381
BTreeTupleSetPosting(IndexTuple itup, int nhtids, int postingoffset)
382382
{
383383
Assert(nhtids > 1 && (nhtids & BT_OFFSET_MASK) == nhtids);
384-
Assert(postingoffset == MAXALIGN(postingoffset));
384+
Assert((size_t) postingoffset == MAXALIGN(postingoffset));
385385
Assert(postingoffset < INDEX_SIZE_MASK);
386386

387387
itup->t_info |= INDEX_ALT_TID_MASK;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy