Skip to content

Commit cbb2a81

Browse files
committed
Use PG_INT32_MIN instead of reiterating the constant.
Makes no difference, but it's cleaner this way. Michael Paquier
1 parent d1b7d48 commit cbb2a81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/adt/numutils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ pg_ltoa(int32 value, char *a)
136136
* Avoid problems with the most negative integer not being representable
137137
* as a positive integer.
138138
*/
139-
if (value == (-2147483647 - 1))
139+
if (value == PG_INT32_MIN)
140140
{
141141
memcpy(a, "-2147483648", 12);
142142
return;

0 commit comments

Comments
 (0)