diff options
author | Robert Haas <rhaas@postgresql.org> | 2016-04-13 07:53:54 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2016-04-13 07:54:45 -0400 |
commit | cbb2a812d710dd58e68088b334f8c492346a0d0f (patch) | |
tree | 7ecd4fb10da498aa9738df425ed292f11df449af /src/backend/utils/adt/numutils.c | |
parent | d1b7d4877b9a71f476e8e5adea3b6afe419896ba (diff) | |
download | postgresql-cbb2a812d710dd58e68088b334f8c492346a0d0f.tar.gz postgresql-cbb2a812d710dd58e68088b334f8c492346a0d0f.zip |
Use PG_INT32_MIN instead of reiterating the constant.
Makes no difference, but it's cleaner this way.
Michael Paquier
Diffstat (limited to 'src/backend/utils/adt/numutils.c')
-rw-r--r-- | src/backend/utils/adt/numutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/adt/numutils.c b/src/backend/utils/adt/numutils.c index c1986193c82..362098ea1df 100644 --- a/src/backend/utils/adt/numutils.c +++ b/src/backend/utils/adt/numutils.c @@ -136,7 +136,7 @@ pg_ltoa(int32 value, char *a) * Avoid problems with the most negative integer not being representable * as a positive integer. */ - if (value == (-2147483647 - 1)) + if (value == PG_INT32_MIN) { memcpy(a, "-2147483648", 12); return; |