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

Commit46db8ac

Browse files
committed
Backup pg_atoi patch for long checking. Caused initdb problems.
1 parentffe0097 commit46db8ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/numutils.c,v 1.31 1999/07/08 00:27:01 momjian Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/numutils.c,v 1.32 1999/07/09 03:27:20 momjian Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -76,7 +76,7 @@ pg_atoi(char *s, int size, int c)
7676
switch (size)
7777
{
7878
casesizeof(int32):
79-
#if defined(HAVE_LONG_INT_64)|| defined(HAVE_LONG_LONG_INT_64)
79+
#ifdefHAS_LONG_LONG
8080
/* won't get ERANGE on these with 64-bit longs... */
8181
if (l<INT_MIN)
8282
{
@@ -88,7 +88,7 @@ pg_atoi(char *s, int size, int c)
8888
errno=ERANGE;
8989
elog(ERROR,"pg_atoi: error reading \"%s\": %m",s);
9090
}
91-
#endif/*HAVE_LONG_INT_64 or HAVE_LONG_LONG_INT_64 */
91+
#endif/*HAS_LONG_LONG */
9292
break;
9393
casesizeof(int16):
9494
if (l<SHRT_MIN)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp