mirror of
https://github.com/postgres/postgres.git
synced 2025-08-06 18:42:54 +03:00
Fix various comparing functions
This commit is contained in:
@@ -87,7 +87,9 @@ reset_prs(void)
|
||||
static int
|
||||
compareprs(const void *a, const void *b)
|
||||
{
|
||||
return ((WParserInfo *) a)->prs_id - ((WParserInfo *) b)->prs_id;
|
||||
if ( ((WParserInfo *) a)->prs_id == ((WParserInfo *) b)->prs_id )
|
||||
return 0;
|
||||
return ( ((WParserInfo *) a)->prs_id < ((WParserInfo *) b)->prs_id ) ? -1 : 1;
|
||||
}
|
||||
|
||||
WParserInfo *
|
||||
|
Reference in New Issue
Block a user