aboutsummaryrefslogtreecommitdiff
path: root/src/include/postgres.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/postgres.h')
-rw-r--r--src/include/postgres.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/postgres.h b/src/include/postgres.h
index 90cd3d55532..b34b93d8e4f 100644
--- a/src/include/postgres.h
+++ b/src/include/postgres.h
@@ -326,7 +326,7 @@ typedef Datum *DatumPtr;
* the left of the width of bool, per comment above.
*/
-#define DatumGetBool(X) ((bool) (((bool) (X)) != 0))
+#define DatumGetBool(X) ((bool) (GET_1_BYTE(X) != 0))
/*
* BoolGetDatum