diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2018-04-26 14:47:16 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2018-04-26 14:47:16 -0400 |
commit | bdf46af748d0f15f257c99bf06e9e25aba6a24f9 (patch) | |
tree | 3637d69ad413fdc23098cc2cf94b2cd57fd44dab /contrib/cube/cube.c | |
parent | f83bf385c1dad4964e0d899174989a1668536182 (diff) | |
download | postgresql-bdf46af748d0f15f257c99bf06e9e25aba6a24f9.tar.gz postgresql-bdf46af748d0f15f257c99bf06e9e25aba6a24f9.zip |
Post-feature-freeze pgindent run.
Discussion: https://postgr.es/m/15719.1523984266@sss.pgh.pa.us
Diffstat (limited to 'contrib/cube/cube.c')
-rw-r--r-- | contrib/cube/cube.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/contrib/cube/cube.c b/contrib/cube/cube.c index d96ca1ec1fd..092ef149cfa 100644 --- a/contrib/cube/cube.c +++ b/contrib/cube/cube.c @@ -1361,9 +1361,10 @@ g_cube_distance(PG_FUNCTION_ARGS) if (coord <= 2 * DIM(cube)) { /* dimension index */ - int index = (coord - 1) / 2; + int index = (coord - 1) / 2; + /* whether this is upper bound (lower bound otherwise) */ - bool upper = ((coord - 1) % 2 == 1); + bool upper = ((coord - 1) % 2 == 1); if (IS_POINT(cube)) { @@ -1596,9 +1597,10 @@ cube_coord_llur(PG_FUNCTION_ARGS) if (coord <= 2 * DIM(cube)) { /* dimension index */ - int index = (coord - 1) / 2; + int index = (coord - 1) / 2; + /* whether this is upper bound (lower bound otherwise) */ - bool upper = ((coord - 1) % 2 == 1); + bool upper = ((coord - 1) % 2 == 1); if (IS_POINT(cube)) { @@ -1615,8 +1617,8 @@ cube_coord_llur(PG_FUNCTION_ARGS) else { /* - * Return zero if coordinate is out of bound. That reproduces logic of - * how cubes with low dimension number are expanded during GiST + * Return zero if coordinate is out of bound. That reproduces logic + * of how cubes with low dimension number are expanded during GiST * indexing. */ result = 0.0; |