Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7a64100

Browse files
committed
Fix insufficiently-parenthesized macro definitions.
No known bug here, but...
1 parentb83047e commit7a64100

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
#defineScanDirectionIsValid(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
#defineScanDirectionIsBackward(direction) \
42-
((bool) (direction == BackwardScanDirection))
42+
((bool) ((direction) == BackwardScanDirection))
4343

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

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

5858
#endif/* SDIR_H */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp