Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 90051cd

Browse filesBrowse 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
Copy full SHA for 90051cd

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/include/access/nbtree.h

Copy file name to clipboardExpand all lines: src/include/access/nbtree.h
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.