1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Avoid use of C commment inside C comment from recent Win32 int overflow patch.

This commit is contained in:
Bruce Momjian
2006-06-12 16:29:08 +00:00
parent f7a0b645f5
commit 4cfe1fadad

View File

@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/int.c,v 1.68.2.2 2006/06/12 16:09:39 momjian Exp $ * $PostgreSQL: pgsql/src/backend/utils/adt/int.c,v 1.68.2.3 2006/06/12 16:29:08 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -745,7 +745,7 @@ int4mul(PG_FUNCTION_ARGS)
#ifdef WIN32 #ifdef WIN32
/* /*
* Win32 doesn't throw a catchable exception for * Win32 doesn't throw a catchable exception for
* SELECT -2147483648 /* INT_MIN */ * (-1); * SELECT -2147483648 * (-1); -- INT_MIN
*/ */
if (arg2 == -1 && arg1 == INT_MIN) if (arg2 == -1 && arg1 == INT_MIN)
ereport(ERROR, ereport(ERROR,
@ -791,7 +791,7 @@ int4div(PG_FUNCTION_ARGS)
#ifdef WIN32 #ifdef WIN32
/* /*
* Win32 doesn't throw a catchable exception for * Win32 doesn't throw a catchable exception for
* SELECT -2147483648 /* INT_MIN */ / (-1); * SELECT -2147483648 / (-1); -- INT_MIN
*/ */
if (arg2 == -1 && arg1 == INT_MIN) if (arg2 == -1 && arg1 == INT_MIN)
ereport(ERROR, ereport(ERROR,