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

Commite6a7b01

Browse files
committed
Avoid use of C commment inside C comment from recent Win32 int overflow patch.
1 parent27bff75 commite6a7b01

File tree

1 file changed

+3
-3
lines changed
  • src/backend/utils/adt

1 file changed

+3
-3
lines changed

‎src/backend/utils/adt/int.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/utils/adt/int.c,v 1.73 2006/06/12 16:09:11 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/utils/adt/int.c,v 1.74 2006/06/12 16:28:52 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -738,7 +738,7 @@ int4mul(PG_FUNCTION_ARGS)
738738
#ifdefWIN32
739739
/*
740740
*Win32 doesn't throw a catchable exception for
741-
*SELECT -2147483648/* INT_MIN */*(-1);
741+
*SELECT -2147483648*(-1); -- INT_MIN
742742
*/
743743
if (arg2==-1&&arg1==INT_MIN)
744744
ereport(ERROR,
@@ -784,7 +784,7 @@ int4div(PG_FUNCTION_ARGS)
784784
#ifdefWIN32
785785
/*
786786
*Win32 doesn't throw a catchable exception for
787-
*SELECT -2147483648 /* INT_MIN */ /(-1);
787+
*SELECT -2147483648 /(-1); -- INT_MIN
788788
*/
789789
if (arg2==-1&&arg1==INT_MIN)
790790
ereport(ERROR,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp