diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-11-27 10:58:37 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-11-27 10:58:37 -0500 |
commit | e78d288c895bd296e3cb1ca29c7fe2431eef3fcd (patch) | |
tree | 9258cb2792a9774b0aa37dc9435b76f1f01633ed /src | |
parent | 1f67078ea324d492a366a24abb2ac313c629314f (diff) | |
download | postgresql-e78d288c895bd296e3cb1ca29c7fe2431eef3fcd.tar.gz postgresql-e78d288c895bd296e3cb1ca29c7fe2431eef3fcd.zip |
Add explicit casts in ilist.h's inline functions.
Needed to silence C++ errors, per report from Peter Eisentraut.
Andres Freund
Diffstat (limited to 'src')
-rw-r--r-- | src/include/lib/ilist.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/lib/ilist.h b/src/include/lib/ilist.h index bc684b84af6..8f584863a36 100644 --- a/src/include/lib/ilist.h +++ b/src/include/lib/ilist.h @@ -467,7 +467,7 @@ dlist_head_element_off(dlist_head *head, size_t off) STATIC_IF_INLINE dlist_node * dlist_head_node(dlist_head *head) { - return dlist_head_element_off(head, 0); + return (dlist_node *) dlist_head_element_off(head, 0); } /* 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) STATIC_IF_INLINE dlist_node * dlist_tail_node(dlist_head *head) { - return dlist_tail_element_off(head, 0); + return (dlist_node *) dlist_tail_element_off(head, 0); } #endif /* PG_USE_INLINE || ILIST_INCLUDE_DEFINITIONS */ @@ -677,7 +677,7 @@ slist_head_element_off(slist_head *head, size_t off) STATIC_IF_INLINE slist_node * slist_head_node(slist_head *head) { - return slist_head_element_off(head, 0); + return (slist_node *) slist_head_element_off(head, 0); } #endif /* PG_USE_INLINE || ILIST_INCLUDE_DEFINITIONS */ |