Skip to content

Commit e6a7b01

Browse files
committed
Avoid use of C commment inside C comment from recent Win32 int overflow patch.
1 parent 27bff75 commit e6a7b01

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
#ifdef WIN32
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
#ifdef WIN32
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy