8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $PostgreSQL: pgsql/src/backend/utils/adt/geo_ops.c,v 1.103 2009/07/28 09:47:59 teodor Exp $
11
+ * $PostgreSQL: pgsql/src/backend/utils/adt/geo_ops.c,v 1.104 2009/08/27 15:59:22 tgl Exp $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
@@ -2939,7 +2939,7 @@ close_lseg(PG_FUNCTION_ARGS)
2939
2939
memcpy (& point , & l1 -> p [1 ], sizeof (Point ));
2940
2940
}
2941
2941
2942
- if (( d = dist_ps_internal (& l2 -> p [0 ], l1 ) ) < dist )
2942
+ if (dist_ps_internal (& l2 -> p [0 ], l1 ) < dist )
2943
2943
{
2944
2944
result = DatumGetPointP (DirectFunctionCall2 (close_ps ,
2945
2945
PointPGetDatum (& l2 -> p [0 ]),
@@ -2950,7 +2950,7 @@ close_lseg(PG_FUNCTION_ARGS)
2950
2950
LsegPGetDatum (l2 )));
2951
2951
}
2952
2952
2953
- if (( d = dist_ps_internal (& l2 -> p [1 ], l1 ) ) < dist )
2953
+ if (dist_ps_internal (& l2 -> p [1 ], l1 ) < dist )
2954
2954
{
2955
2955
result = DatumGetPointP (DirectFunctionCall2 (close_ps ,
2956
2956
PointPGetDatum (& l2 -> p [1 ]),
@@ -2990,7 +2990,7 @@ close_pb(PG_FUNCTION_ARGS)
2990
2990
point .x = box -> low .x ;
2991
2991
point .y = box -> high .y ;
2992
2992
statlseg_construct (& lseg , & box -> low , & point );
2993
- dist = d = dist_ps_internal (pt , & lseg );
2993
+ dist = dist_ps_internal (pt , & lseg );
2994
2994
2995
2995
statlseg_construct (& seg , & box -> high , & point );
2996
2996
if ((d = dist_ps_internal (pt , & seg )) < dist )
0 commit comments