Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcbb2a81

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

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)

[8]ページ先頭

©2009-2025 Movatter.jp