pgsql: Fix header comment for bitncmp(). - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix header comment for bitncmp().
Date
Msg-id E1VzWTu-0000jd-EL@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix header comment for bitncmp().

The result is an int less than, equal to, or greater than zero, in the
style of memcmp (and, in fact, exactly the output of memcmp in some cases).
This comment previously said -1, 1, or 0, which was an overspecification,
as noted by Emre Hasegeli.  All of the existing callers appear to be fine
with the actual behavior, so just fix the comment.

In passing, improve infelicitous formatting of some call sites.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/5858cf8ab2c7a186fab050725992d6ef640e38a5

Modified Files
--------------
src/backend/utils/adt/network.c |   18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix typo in comment.
Next
From: Tom Lane
Date:
Subject: pgsql: Fix translatability markings in psql, and add defenses against f