Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commite78d288

Browse files
committed
Add explicit casts in ilist.h's inline functions.
Needed to silence C++ errors, per report from Peter Eisentraut.Andres Freund
1 parent1f67078 commite78d288

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/include/lib/ilist.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ dlist_head_element_off(dlist_head *head, size_t off)
467467
STATIC_IF_INLINEdlist_node*
468468
dlist_head_node(dlist_head*head)
469469
{
470-
returndlist_head_element_off(head,0);
470+
return(dlist_node*)dlist_head_element_off(head,0);
471471
}
472472

473473
/* internal support function to get address of tail element's struct */
@@ -484,7 +484,7 @@ dlist_tail_element_off(dlist_head *head, size_t off)
484484
STATIC_IF_INLINEdlist_node*
485485
dlist_tail_node(dlist_head*head)
486486
{
487-
returndlist_tail_element_off(head,0);
487+
return(dlist_node*)dlist_tail_element_off(head,0);
488488
}
489489
#endif/* PG_USE_INLINE || ILIST_INCLUDE_DEFINITIONS */
490490

@@ -677,7 +677,7 @@ slist_head_element_off(slist_head *head, size_t off)
677677
STATIC_IF_INLINEslist_node*
678678
slist_head_node(slist_head*head)
679679
{
680-
returnslist_head_element_off(head,0);
680+
return(slist_node*)slist_head_element_off(head,0);
681681
}
682682
#endif/* PG_USE_INLINE || ILIST_INCLUDE_DEFINITIONS */
683683

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp