1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-05 07:21:24 +03:00

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
This commit is contained in:
Andres Freund
2016-03-27 17:17:00 +02:00
parent af4472bcb8
commit 1a7a43672b
5 changed files with 12 additions and 11 deletions

View File

@ -603,7 +603,7 @@ ReorderBufferTXNByXid(ReorderBuffer *rb, TransactionId xid, bool create,
if (is_new)
*is_new = !found;
Assert(!create || !!txn);
Assert(!create || txn != NULL);
return txn;
}