Skip to content

Commit 4784fe9

Browse files
committed
Simplify defines
1 parent 47979e6 commit 4784fe9

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(const void *a, const void *b)
3737
{
3838
return DatumGetBool(
39-
DirectFunctionCall2(time_gt, P_TimeADTGetDatum(*((TimeADT *) a)), P_TimeADTGetDatum(*((TimeADT *) b)))
39+
DirectFunctionCall2(time_gt, PointerGetDatum(a), PointerGetDatum(b))
4040
);
4141
}
4242

4343
static bool
4444
gbt_timege(const void *a, const void *b)
4545
{
4646
return DatumGetBool(
47-
DirectFunctionCall2(time_ge, P_TimeADTGetDatum(*((TimeADT *) a)), P_TimeADTGetDatum(*((TimeADT *) b)))
47+
DirectFunctionCall2(time_ge, PointerGetDatum(a), PointerGetDatum(b))
4848
);
4949
}
5050

5151
static bool
5252
gbt_timeeq(const void *a, const void *b)
5353
{
5454
return DatumGetBool(
55-
DirectFunctionCall2(time_eq, P_TimeADTGetDatum(*((TimeADT *) a)), P_TimeADTGetDatum(*((TimeADT *) b)))
55+
DirectFunctionCall2(time_eq, PointerGetDatum(a), PointerGetDatum(b))
5656
);
5757
}
5858

5959
static bool
6060
gbt_timele(const void *a, const void *b)
6161
{
6262
return DatumGetBool(
63-
DirectFunctionCall2(time_le, P_TimeADTGetDatum(*((TimeADT *) a)), P_TimeADTGetDatum(*((TimeADT *) b)))
63+
DirectFunctionCall2(time_le, PointerGetDatum(a), PointerGetDatum(b))
6464
);
6565
}
6666

6767
static bool
6868
gbt_timelt(const void *a, const void *b)
6969
{
7070
return DatumGetBool(
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy