Skip to content

Commit 7a64100

Browse files
committed
Fix insufficiently-parenthesized macro definitions.
No known bug here, but...
1 parent b83047e commit 7a64100

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/include/access/sdir.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: sdir.h,v 1.7 2000/01/26 05:57:51 momjian Exp $
10+
* $Id: sdir.h,v 1.8 2000/11/02 23:11:03 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -31,28 +31,28 @@ typedef enum ScanDirection
3131
* True iff scan direction is valid.
3232
*/
3333
#define ScanDirectionIsValid(direction) \
34-
((bool) (BackwardScanDirection <= direction && \
35-
direction <= ForwardScanDirection))
34+
((bool) (BackwardScanDirection <= (direction) && \
35+
(direction) <= ForwardScanDirection))
3636

3737
/*
3838
* ScanDirectionIsBackward
3939
* True iff scan direction is backward.
4040
*/
4141
#define ScanDirectionIsBackward(direction) \
42-
((bool) (direction == BackwardScanDirection))
42+
((bool) ((direction) == BackwardScanDirection))
4343

4444
/*
4545
* ScanDirectionIsNoMovement
4646
* True iff scan direction indicates no movement.
4747
*/
4848
#define ScanDirectionIsNoMovement(direction) \
49-
((bool) (direction == NoMovementScanDirection))
49+
((bool) ((direction) == NoMovementScanDirection))
5050

5151
/*
5252
* ScanDirectionIsForward
5353
* True iff scan direction is forward.
5454
*/
5555
#define ScanDirectionIsForward(direction) \
56-
((bool) (direction == ForwardScanDirection))
56+
((bool) ((direction) == ForwardScanDirection))
5757

5858
#endif /* SDIR_H */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy