mirror of
https://github.com/postgres/postgres.git
synced 2025-10-24 01:29:19 +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:
@@ -149,9 +149,9 @@ typedef void (*SubXactCallback) (SubXactEvent event, SubTransactionId mySubid,
|
||||
|
||||
/* Access macros for above flags */
|
||||
#define XactCompletionRelcacheInitFileInval(xinfo) \
|
||||
(!!(xinfo & XACT_COMPLETION_UPDATE_RELCACHE_FILE))
|
||||
((xinfo & XACT_COMPLETION_UPDATE_RELCACHE_FILE) != 0)
|
||||
#define XactCompletionForceSyncCommit(xinfo) \
|
||||
(!!(xinfo & XACT_COMPLETION_FORCE_SYNC_COMMIT))
|
||||
((xinfo & XACT_COMPLETION_FORCE_SYNC_COMMIT) != 0)
|
||||
|
||||
typedef struct xl_xact_assignment
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user