We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94e498d commit f229b2eCopy full SHA for f229b2e
src/point.c
@@ -315,8 +315,8 @@ Datum
315
spherepoint_hash32(PG_FUNCTION_ARGS)
316
{
317
SPoint *p1 = (SPoint *) PG_GETARG_POINTER(0);
318
- Datum h1 = DirectFunctionCall1(hashfloat8, p1->lat);
319
- Datum h2 = DirectFunctionCall1(hashfloat8, p1->lng);
+ Datum h1 = DirectFunctionCall1(hashfloat8, Float8GetDatum(p1->lat));
+ Datum h2 = DirectFunctionCall1(hashfloat8, Float8GetDatum(p1->lng));
320
321
PG_RETURN_INT32(DatumGetInt32(h1) ^ DatumGetInt32(h2));
322
}
0 commit comments