postgres.git / summary / log / commit / refs

commit    00f167bed782363b4fe05ecd870155eb84336a8b
Author:   Alvaro Herrera <alvherre@alvh.no-ip.org>
Date:     Fri Sep 13 19:26:55 2019 +0000
First released in: 13.0, 9.5.20, 9.6.16, 10.11, 11.6, 12.0

    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


src/include/nodes/parsenodes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index 1481fff57de..e6e11142a84 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -2942,7 +2942,7 @@ typedef struct ConstraintsSetStmt */ /* Reindex options */ -#define REINDEXOPT_VERBOSE 1 << 0 /* print progress info */ +#define REINDEXOPT_VERBOSE (1 << 0) /* print progress info */ typedef enum ReindexObjectType { [parent: 835646503d5d]