Skip to content

Commit 741b1aa

Browse files
committed
Fix PG_GETARG_SEG_P() definition.
DatumGetPointer() takes a Datum argument, not a pointer. This is cosmetic given the current definitions of the underlying macros, but it's still formally a type violation. Bug was introduced in commit 389bb28, but there seems no need to back-patch. Dagfinn Ilmari Mannsåker Discussion: https://postgr.es/m/d8jlfsxq3a0.fsf@dalvik.ping.uio.no
1 parent 8af1624 commit 741b1aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/seg/seg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020

2121
#define DatumGetSegP(X) ((SEG *) DatumGetPointer(X))
22-
#define PG_GETARG_SEG_P(n) DatumGetSegP(PG_GETARG_POINTER(n))
22+
#define PG_GETARG_SEG_P(n) DatumGetSegP(PG_GETARG_DATUM(n))
2323

2424

2525
/*

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