Content-Length: 258720 | pFad | http://github.com/postgrespro/postgres/commit/741b1aaf61a3da10250555f827c0a7a2f9bc2822

3F Fix PG_GETARG_SEG_P() definition. · postgrespro/postgres@741b1aa · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/741b1aaf61a3da10250555f827c0a7a2f9bc2822

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy