diff --git a/src/include/postgres.h b/src/include/postgres.h index 90cd3d55532f529fc20b9bb15ffdbac1ba0e41d3..b34b93d8e4ff1a048fcd022be045d46a217a39f5 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