mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-15 08:20:16 +08:00
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 389bb2818
, but there seems
no need to back-patch.
Dagfinn Ilmari Mannsåker
Discussion: https://postgr.es/m/d8jlfsxq3a0.fsf@dalvik.ping.uio.no
This commit is contained in:
parent
8af1624e3f
commit
741b1aaf61
@ -19,7 +19,7 @@
|
||||
|
||||
|
||||
#define DatumGetSegP(X) ((SEG *) DatumGetPointer(X))
|
||||
#define PG_GETARG_SEG_P(n) DatumGetSegP(PG_GETARG_POINTER(n))
|
||||
#define PG_GETARG_SEG_P(n) DatumGetSegP(PG_GETARG_DATUM(n))
|
||||
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user