From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@postgresql.org
Subject: pgsql: Don't use !! but != 0/NULL to force boolean evaluation.
Date: Sun, 27 Mar 2016 16:11:56 +0000
Message-ID: <E1akDIC-0000hg-Hv@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Don't use !! but != 0/NULL to force boolean evaluation.
I introduced several uses of !! to force bit arithmetic to be boolean,
but per discussion the project prefers != 0/NULL.
Discussion: CA+TgmoZP5KakLGP6B4vUjgMBUW0woq_dJYi0paOz-My0Hwt_vQ@mail.gmail.com
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/1a7a43672bf2939dda93a27d498349e7a4aa3c14
Modified Files
--------------
contrib/sepgsql/uavc.c | 2 +-
src/backend/access/transam/xact.c | 3 ++-
src/backend/replication/logical/reorderbuffer.c | 2 +-
src/backend/storage/lmgr/lwlock.c | 12 ++++++------
src/include/access/xact.h | 4 ++--
5 files changed, 12 insertions(+), 11 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: andres@anarazel.de
Subject: Re: pgsql: Don't use !! but != 0/NULL to force boolean evaluation.
In-Reply-To: <E1akDIC-0000hg-Hv@gemulon.postgresql.org>
References: <E1akDIC-0000hg-Hv@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox