Skip to content

Commit 32291ae

Browse files
committed
Fix thinko in in_range_float4_float8.
I forgot the coding rule for correct use of Float8GetDatumFast. Per buildfarm.
1 parent 8b29e88 commit 32291ae

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/backend/utils/adt/float.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,9 +1259,12 @@ Datum
12591259
in_range_float4_float8(PG_FUNCTION_ARGS)
12601260
{
12611261
/* Doesn't seem worth duplicating code for, so just invoke float8_float8 */
1262+
float8 val = (float8) PG_GETARG_FLOAT4(0);
1263+
float8 base = (float8) PG_GETARG_FLOAT4(1);
1264+
12621265
return DirectFunctionCall5(in_range_float8_float8,
1263-
Float8GetDatumFast((float8) PG_GETARG_FLOAT4(0)),
1264-
Float8GetDatumFast((float8) PG_GETARG_FLOAT4(1)),
1266+
Float8GetDatumFast(val),
1267+
Float8GetDatumFast(base),
12651268
PG_GETARG_DATUM(2),
12661269
PG_GETARG_DATUM(3),
12671270
PG_GETARG_DATUM(4));

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