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

Commit4784fe9

Browse files
committed
Simplify defines
1 parent47979e6 commit4784fe9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎contrib/btree_gist/btree_time.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,39 +36,39 @@ static bool
3636
gbt_timegt(constvoid*a,constvoid*b)
3737
{
3838
returnDatumGetBool(
39-
DirectFunctionCall2(time_gt,P_TimeADTGetDatum(*((TimeADT*)a)),P_TimeADTGetDatum(*((TimeADT*)b)))
39+
DirectFunctionCall2(time_gt,PointerGetDatum(a),PointerGetDatum(b))
4040
);
4141
}
4242

4343
staticbool
4444
gbt_timege(constvoid*a,constvoid*b)
4545
{
4646
returnDatumGetBool(
47-
DirectFunctionCall2(time_ge,P_TimeADTGetDatum(*((TimeADT*)a)),P_TimeADTGetDatum(*((TimeADT*)b)))
47+
DirectFunctionCall2(time_ge,PointerGetDatum(a),PointerGetDatum(b))
4848
);
4949
}
5050

5151
staticbool
5252
gbt_timeeq(constvoid*a,constvoid*b)
5353
{
5454
returnDatumGetBool(
55-
DirectFunctionCall2(time_eq,P_TimeADTGetDatum(*((TimeADT*)a)),P_TimeADTGetDatum(*((TimeADT*)b)))
55+
DirectFunctionCall2(time_eq,PointerGetDatum(a),PointerGetDatum(b))
5656
);
5757
}
5858

5959
staticbool
6060
gbt_timele(constvoid*a,constvoid*b)
6161
{
6262
returnDatumGetBool(
63-
DirectFunctionCall2(time_le,P_TimeADTGetDatum(*((TimeADT*)a)),P_TimeADTGetDatum(*((TimeADT*)b)))
63+
DirectFunctionCall2(time_le,PointerGetDatum(a),PointerGetDatum(b))
6464
);
6565
}
6666

6767
staticbool
6868
gbt_timelt(constvoid*a,constvoid*b)
6969
{
7070
returnDatumGetBool(
71-
DirectFunctionCall2(time_lt,P_TimeADTGetDatum(*((TimeADT*)a)),P_TimeADTGetDatum(*((TimeADT*)b)))
71+
DirectFunctionCall2(time_lt,PointerGetDatum(a),PointerGetDatum(b))
7272
);
7373
}
7474

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp