mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Fix various comparing functions
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user