diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-10-21 19:28:36 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-10-21 19:28:36 +0000 |
| commit | 380bd04c1658795c77b3b808ee766347188fab5f (patch) | |
| tree | cb654e3e510cb1974120cd4d3ea1984b30f3eb32 /contrib/tsearch2/rank.c | |
| parent | a171fc1a4f37e37c1e80fe3e92a96b2bd37c8f98 (diff) | |
| download | postgresql-380bd04c1658795c77b3b808ee766347188fab5f.tar.gz | |
Standardize on using the Min, Max, and Abs macros that are in our c.h file,
getting rid of numerous ad-hoc versions that have popped up in various
places. Shortens code and avoids conflict with Windows min() and max()
macros.
Diffstat (limited to 'contrib/tsearch2/rank.c')
| -rw-r--r-- | contrib/tsearch2/rank.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/tsearch2/rank.c b/contrib/tsearch2/rank.c index a79444250d..3845ddf492 100644 --- a/contrib/tsearch2/rank.c +++ b/contrib/tsearch2/rank.c @@ -165,7 +165,7 @@ calc_rank_and(float *w, tsvector * t, QUERYTYPE * q) { for (p = 0; p < lenct; p++) { - dist = abs(post[l].pos - ct[p].pos); + dist = Abs(post[l].pos - ct[p].pos); if (dist || (dist == 0 && (pos[i] == (uint16 *) POSNULL || pos[k] == (uint16 *) POSNULL))) { float curw; |
