diff options
author | Robert Haas | 2016-04-13 11:53:54 +0000 |
---|---|---|
committer | Robert Haas | 2016-04-13 11:54:45 +0000 |
commit | cbb2a812d710dd58e68088b334f8c492346a0d0f (patch) | |
tree | 7ecd4fb10da498aa9738df425ed292f11df449af | |
parent | d1b7d4877b9a71f476e8e5adea3b6afe419896ba (diff) |
Use PG_INT32_MIN instead of reiterating the constant.
Makes no difference, but it's cleaner this way.
Michael Paquier
-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 c1986193c8..362098ea1d 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; |