Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit741b1aa

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 theunderlying macros, but it's still formally a type violation.Bug was introduced in commit389bb28, but there seemsno need to back-patch.Dagfinn Ilmari MannsåkerDiscussion:https://postgr.es/m/d8jlfsxq3a0.fsf@dalvik.ping.uio.no
1 parent8af1624 commit741b1aa

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
#defineDatumGetSegP(X) ((SEG *) DatumGetPointer(X))
22-
#definePG_GETARG_SEG_P(n) DatumGetSegP(PG_GETARG_POINTER(n))
22+
#definePG_GETARG_SEG_P(n) DatumGetSegP(PG_GETARG_DATUM(n))
2323

2424

2525
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp