1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-08 06:02:22 +03:00

Fix various comparing functions

This commit is contained in:
Teodor Sigaev
2005-03-31 15:10:48 +00:00
parent 01ebb55c06
commit da2010f40b
5 changed files with 12 additions and 6 deletions

View File

@@ -51,7 +51,7 @@ static int
comparePos(const void *a, const void *b)
{
if (((WordEntryPos *) a)->pos == ((WordEntryPos *) b)->pos)
return 1;
return 0;
return (((WordEntryPos *) a)->pos > ((WordEntryPos *) b)->pos) ? 1 : -1;
}