aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/int.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2017-12-12 18:15:22 -0800
committerAndres Freund <andres@anarazel.de>2017-12-12 18:19:13 -0800
commitf512a6e1323eefa843a063e466babb96d7bfb4ce (patch)
treecd1300887b0a3e884643233a5bf5a713e615b66f /src/backend/utils/adt/int.c
parent4c6744ed705df6f388371d044b87d1b4a60e9f80 (diff)
downloadpostgresql-f512a6e1323eefa843a063e466babb96d7bfb4ce.tar.gz
postgresql-f512a6e1323eefa843a063e466babb96d7bfb4ce.zip
Consistently use PG_INT(16|32|64)_(MIN|MAX).
Per buildfarm animal woodlouse.
Diffstat (limited to 'src/backend/utils/adt/int.c')
-rw-r--r--src/backend/utils/adt/int.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/utils/adt/int.c b/src/backend/utils/adt/int.c
index 36ba86ca734..d6eb16a907b 100644
--- a/src/backend/utils/adt/int.c
+++ b/src/backend/utils/adt/int.c
@@ -794,7 +794,7 @@ int2div(PG_FUNCTION_ARGS)
*/
if (arg2 == -1)
{
- if (unlikely(arg1 == INT16_MIN))
+ if (unlikely(arg1 == PG_INT16_MIN))
ereport(ERROR,
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
errmsg("smallint out of range")));
@@ -1018,7 +1018,7 @@ int4abs(PG_FUNCTION_ARGS)
int32 arg1 = PG_GETARG_INT32(0);
int32 result;
- if (unlikely(arg1 == INT32_MIN))
+ if (unlikely(arg1 == PG_INT32_MIN))
ereport(ERROR,
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
errmsg("integer out of range")));
@@ -1032,7 +1032,7 @@ int2abs(PG_FUNCTION_ARGS)
int16 arg1 = PG_GETARG_INT16(0);
int16 result;
- if (unlikely(arg1 == INT16_MIN))
+ if (unlikely(arg1 == PG_INT16_MIN))
ereport(ERROR,
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
errmsg("smallint out of range")));