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/ts_cfg.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/ts_cfg.c')
| -rw-r--r-- | contrib/tsearch2/ts_cfg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/tsearch2/ts_cfg.c b/contrib/tsearch2/ts_cfg.c index 79f25c43d9..735d406109 100644 --- a/contrib/tsearch2/ts_cfg.c +++ b/contrib/tsearch2/ts_cfg.c @@ -186,7 +186,9 @@ reset_cfg(void) static int comparecfg(const void *a, const void *b) { - return ((TSCfgInfo *) a)->id - ((TSCfgInfo *) b)->id; + if ( ((TSCfgInfo *) a)->id == ((TSCfgInfo *) b)->id ) + return 0; + return ( ((TSCfgInfo *) a)->id < ((TSCfgInfo *) b)->id ) ? -1 : 1; } TSCfgInfo * |
