Content-Length: 259708 | pFad | http://github.com/postgrespro/postgres/commit/90051cd8278bd089cf59ca6366df64de2982be2a

89 Silence nbtree.h cpluspluscheck warning. · postgrespro/postgres@90051cd · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/90051cd8278bd089cf59ca6366df64de2982be2a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy