aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2018-04-23 04:48:08 -0400
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2018-04-23 04:48:08 -0400
commit6a7b2ce2bdb9ab5fd23c98ace4bb2d811231706a (patch)
tree62b8e987218c2954e3c8140c667512f02a4c54aa /src
parent43cc4ee6340779f2a17fb5bab27355c2cb2e23a6 (diff)
downloadpostgresql-6a7b2ce2bdb9ab5fd23c98ace4bb2d811231706a.tar.gz
postgresql-6a7b2ce2bdb9ab5fd23c98ace4bb2d811231706a.zip
Make PGJIT_* macros safer.
Author: David Rowley Discussion: https://www.postgresql.org/message-id/CAKJS1f8Ge2y0sDs6RQEJFH-vjb-bWhs86rCX4Fp4FZ+TmxtRkw@mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r--src/include/jit/jit.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/include/jit/jit.h b/src/include/jit/jit.h
index ddeffae2731..b451f4027e7 100644
--- a/src/include/jit/jit.h
+++ b/src/include/jit/jit.h
@@ -17,11 +17,11 @@
/* Flags determining what kind of JIT operations to perform */
#define PGJIT_NONE 0
-#define PGJIT_PERFORM 1 << 0
-#define PGJIT_OPT3 1 << 1
-#define PGJIT_INLINE 1 << 2
-#define PGJIT_EXPR 1 << 3
-#define PGJIT_DEFORM 1 << 4
+#define PGJIT_PERFORM (1 << 0)
+#define PGJIT_OPT3 (1 << 1)
+#define PGJIT_INLINE (1 << 2)
+#define PGJIT_EXPR (1 << 3)
+#define PGJIT_DEFORM (1 << 4)
typedef struct JitContext