1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-02 09:02:37 +03:00

Cleanup various comparisons with the constant "true".

Itagaki Takahiro, with slight modifications.
This commit is contained in:
Robert Haas
2010-11-14 21:03:48 -05:00
parent 3892a2d861
commit 5aa446c961
11 changed files with 20 additions and 20 deletions

View File

@ -3903,7 +3903,7 @@ lseg_inside_poly(Point *a, Point *b, POLYGON *poly, int start)
t.p[1] = *b;
s.p[0] = poly->p[(start == 0) ? (poly->npts - 1) : (start - 1)];
for (i = start; i < poly->npts && res == true; i++)
for (i = start; i < poly->npts && res; i++)
{
Point *interpt;
@ -3979,7 +3979,7 @@ poly_contain(PG_FUNCTION_ARGS)
s.p[0] = polyb->p[polyb->npts - 1];
result = true;
for (i = 0; i < polyb->npts && result == true; i++)
for (i = 0; i < polyb->npts && result; i++)
{
s.p[1] = polyb->p[i];
result = lseg_inside_poly(s.p, s.p + 1, polya, 0);