aboutsummaryrefslogtreecommitdiff
path: root/contrib/btree_gist
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/btree_gist')
-rw-r--r--contrib/btree_gist/btree_cash.c2
-rw-r--r--contrib/btree_gist/btree_int2.c2
-rw-r--r--contrib/btree_gist/btree_int4.c2
-rw-r--r--contrib/btree_gist/btree_int8.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/contrib/btree_gist/btree_cash.c b/contrib/btree_gist/btree_cash.c
index 18f45f2750b..894d0a26655 100644
--- a/contrib/btree_gist/btree_cash.c
+++ b/contrib/btree_gist/btree_cash.c
@@ -101,7 +101,7 @@ cash_dist(PG_FUNCTION_ARGS)
Cash ra;
if (pg_sub_s64_overflow(a, b, &r) ||
- r == INT64_MIN)
+ r == PG_INT64_MIN)
ereport(ERROR,
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
errmsg("money out of range")));
diff --git a/contrib/btree_gist/btree_int2.c b/contrib/btree_gist/btree_int2.c
index c2af4cd566d..7674e2d292b 100644
--- a/contrib/btree_gist/btree_int2.c
+++ b/contrib/btree_gist/btree_int2.c
@@ -100,7 +100,7 @@ int2_dist(PG_FUNCTION_ARGS)
int16 ra;
if (pg_sub_s16_overflow(a, b, &r) ||
- r == INT16_MIN)
+ r == PG_INT16_MIN)
ereport(ERROR,
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
errmsg("smallint out of range")));
diff --git a/contrib/btree_gist/btree_int4.c b/contrib/btree_gist/btree_int4.c
index f2b6dec6607..80005ab65d9 100644
--- a/contrib/btree_gist/btree_int4.c
+++ b/contrib/btree_gist/btree_int4.c
@@ -101,7 +101,7 @@ int4_dist(PG_FUNCTION_ARGS)
int32 ra;
if (pg_sub_s32_overflow(a, b, &r) ||
- r == INT32_MIN)
+ r == PG_INT32_MIN)
ereport(ERROR,
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
errmsg("integer out of range")));
diff --git a/contrib/btree_gist/btree_int8.c b/contrib/btree_gist/btree_int8.c
index 16db0028b7a..b0fd3e1277d 100644
--- a/contrib/btree_gist/btree_int8.c
+++ b/contrib/btree_gist/btree_int8.c
@@ -101,7 +101,7 @@ int8_dist(PG_FUNCTION_ARGS)
int64 ra;
if (pg_sub_s64_overflow(a, b, &r) ||
- r == INT64_MIN)
+ r == PG_INT64_MIN)
ereport(ERROR,
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
errmsg("bigint out of range")));