diff options
| author | Teodor Sigaev <teodor@sigaev.ru> | 2005-03-31 15:08:08 +0000 |
|---|---|---|
| committer | Teodor Sigaev <teodor@sigaev.ru> | 2005-03-31 15:08:08 +0000 |
| commit | fb13881f423193a8342e0fe098f581e511b09d67 (patch) | |
| tree | 8f81480ec5c166066020ccccc613e25321ff1a09 /contrib/tsearch2/rank.c | |
| parent | fd977434b36fc3be3276bc20981146592a60bcc3 (diff) | |
| download | postgresql-fb13881f423193a8342e0fe098f581e511b09d67.tar.gz | |
1 fix various comparing functions
2 implement gtsvector_out for use with gevel module (debug GiST indexes, http://www.sai.msu.su/~megera/postgres/gist/gevel/)
Diffstat (limited to 'contrib/tsearch2/rank.c')
| -rw-r--r-- | contrib/tsearch2/rank.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/tsearch2/rank.c b/contrib/tsearch2/rank.c index a06bb96795..a58986e474 100644 --- a/contrib/tsearch2/rank.c +++ b/contrib/tsearch2/rank.c @@ -386,7 +386,7 @@ static int compareDocR(const void *a, const void *b) { if (((DocRepresentation *) a)->pos == ((DocRepresentation *) b)->pos) - return 1; + return 0; return (((DocRepresentation *) a)->pos > ((DocRepresentation *) b)->pos) ? 1 : -1; } @@ -654,7 +654,7 @@ static int compareDocWord(const void *a, const void *b) { if (((DocWord *) a)->pos == ((DocWord *) b)->pos) - return 1; + return 0; return (((DocWord *) a)->pos > ((DocWord *) b)->pos) ? 1 : -1; } |
