Skip to content

Commit a0a40f6

Browse files
committed
Fix under-parenthesized macro definitions
Lack of parens in the definitions could cause a statement using these macros to have unexpected semantics. In current code no bug is apparent, but best to fix the definitions to avoid problems down the line. Reported-by: Tom Lane Discussion: https://postgr.es/m/19795.1568400476@sss.pgh.pa.us
1 parent da47e43 commit a0a40f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/include/nodes/parsenodes.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3300,8 +3300,8 @@ typedef struct ConstraintsSetStmt
33003300
*/
33013301

33023302
/* Reindex options */
3303-
#define REINDEXOPT_VERBOSE 1 << 0 /* print progress info */
3304-
#define REINDEXOPT_REPORT_PROGRESS 1 << 1 /* report pgstat progress */
3303+
#define REINDEXOPT_VERBOSE (1 << 0) /* print progress info */
3304+
#define REINDEXOPT_REPORT_PROGRESS (1 << 1) /* report pgstat progress */
33053305

33063306
typedef enum ReindexObjectType
33073307
{

0 commit comments

Comments
 (0)