summaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistproc.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2010-11-14 21:03:48 -0500
committerRobert Haas <rhaas@postgresql.org>2010-11-14 21:03:48 -0500
commit5aa446c961a6fdf15ff9c398751efd6ecff0c64a (patch)
treeac22ab29014d718cb234f2edc334c7803b3593a7 /src/backend/access/gist/gistproc.c
parent3892a2d8619ee5623fc3ebee775538fdea1f529e (diff)
downloadpostgresql-5aa446c961a6fdf15ff9c398751efd6ecff0c64a.tar.gz
Cleanup various comparisons with the constant "true".
Itagaki Takahiro, with slight modifications.
Diffstat (limited to 'src/backend/access/gist/gistproc.c')
-rw-r--r--src/backend/access/gist/gistproc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/access/gist/gistproc.c b/src/backend/access/gist/gistproc.c
index 9f6fb34280..681ffd27d4 100644
--- a/src/backend/access/gist/gistproc.c
+++ b/src/backend/access/gist/gistproc.c
@@ -380,12 +380,12 @@ gist_box_picksplit(PG_FUNCTION_ARGS)
for (i = OffsetNumberNext(FirstOffsetNumber); i <= maxoff; i = OffsetNumberNext(i))
{
cur = DatumGetBoxP(entryvec->vector[i].key);
- if (allisequal == true && (
- pageunion.high.x != cur->high.x ||
- pageunion.high.y != cur->high.y ||
- pageunion.low.x != cur->low.x ||
- pageunion.low.y != cur->low.y
- ))
+ if (allisequal && (
+ pageunion.high.x != cur->high.x ||
+ pageunion.high.y != cur->high.y ||
+ pageunion.low.x != cur->low.x ||
+ pageunion.low.y != cur->low.y
+ ))
allisequal = false;
adjustBox(&pageunion, cur);