mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
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/)
This commit is contained in:
@ -51,7 +51,7 @@ static int
|
||||
comparePos(const void *a, const void *b)
|
||||
{
|
||||
if (WEP_GETPOS(*(WordEntryPos *) a) == WEP_GETPOS(*(WordEntryPos *) b))
|
||||
return 1;
|
||||
return 0;
|
||||
return (WEP_GETPOS(*(WordEntryPos *) a)> WEP_GETPOS(*(WordEntryPos *) b)) ? 1 : -1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user