diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-11-02 23:11:03 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-11-02 23:11:03 +0000 |
commit | 7a64100164416f2bfaae5c94be3f92657f21de1e (patch) | |
tree | 5d37083713b057e3643e2f47e78b3523dc290bd9 /src | |
parent | b83047eee2e5a14b96ad4373f847442040c286b7 (diff) | |
download | postgresql-7a64100164416f2bfaae5c94be3f92657f21de1e.tar.gz postgresql-7a64100164416f2bfaae5c94be3f92657f21de1e.zip |
Fix insufficiently-parenthesized macro definitions.
No known bug here, but...
Diffstat (limited to 'src')
-rw-r--r-- | src/include/access/sdir.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/include/access/sdir.h b/src/include/access/sdir.h index 348a49c9244..87f00685f01 100644 --- a/src/include/access/sdir.h +++ b/src/include/access/sdir.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: sdir.h,v 1.7 2000/01/26 05:57:51 momjian Exp $ + * $Id: sdir.h,v 1.8 2000/11/02 23:11:03 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -31,28 +31,28 @@ typedef enum ScanDirection * True iff scan direction is valid. */ #define ScanDirectionIsValid(direction) \ - ((bool) (BackwardScanDirection <= direction && \ - direction <= ForwardScanDirection)) + ((bool) (BackwardScanDirection <= (direction) && \ + (direction) <= ForwardScanDirection)) /* * ScanDirectionIsBackward * True iff scan direction is backward. */ #define ScanDirectionIsBackward(direction) \ - ((bool) (direction == BackwardScanDirection)) + ((bool) ((direction) == BackwardScanDirection)) /* * ScanDirectionIsNoMovement * True iff scan direction indicates no movement. */ #define ScanDirectionIsNoMovement(direction) \ - ((bool) (direction == NoMovementScanDirection)) + ((bool) ((direction) == NoMovementScanDirection)) /* * ScanDirectionIsForward * True iff scan direction is forward. */ #define ScanDirectionIsForward(direction) \ - ((bool) (direction == ForwardScanDirection)) + ((bool) ((direction) == ForwardScanDirection)) #endif /* SDIR_H */ |