git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6212276)
Fix under-parenthesized macro definitions
2019年9月13日 19:26:55 +0000 (16:26 -0300)
2019年9月13日 19:26:55 +0000 (16:26 -0300)
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


diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h
index bb931b2cacf5fed64f95bc5b3ffd33799a595c3e..d93a79a55470055b1c4b66117774ccace4897119 100644 (file)
--- a/src/include/nodes/parsenodes.h
+++ b/src/include/nodes/parsenodes.h
@@ -3312,8 +3312,8 @@ typedef struct ConstraintsSetStmt
*/
/* Reindex options */
-#define REINDEXOPT_VERBOSE 1 << 0 /* print progress info */
-#define REINDEXOPT_REPORT_PROGRESS 1 << 1 /* report pgstat progress */
+#define REINDEXOPT_VERBOSE (1 << 0) /* print progress info */
+#define REINDEXOPT_REPORT_PROGRESS (1 << 1) /* report pgstat progress */
typedef enum ReindexObjectType
{
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /