postgres.git / summary / log / commit / refs

commit    cbb2a812d710dd58e68088b334f8c492346a0d0f
Author:   Robert Haas <rhaas@postgresql.org>
Date:     Wed Apr 13 11:53:54 2016 +0000
First released in: 9.6.0

    Use PG_INT32_MIN instead of reiterating the constant.
    
    Makes no difference, but it's cleaner this way.
    
    Michael Paquier


src/backend/utils/adt/numutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; [parent: d1b7d4877b9a]