mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03: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:
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#define DatumGetSegP(X) ((SEG *) DatumGetPointer(X))
|
#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))
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user