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

Commit3bce31f

Browse files
committed
> gettimeofday.c:35: warning: integer constant is too large for "long"
> typeWouldn't it be better to use the UINT64CONST macro? I realize thisfile is Windows-only, but we do worry about more than one compileron that platform.Kris Jurka
1 parentf1d7f80 commit3bce31f

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

‎src/include/commands/sequence.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
* $PostgreSQL: pgsql/src/include/commands/sequence.h,v 1.33 2005/10/02 23:50:12 tgl Exp $
9+
* $PostgreSQL: pgsql/src/include/commands/sequence.h,v 1.34 2006/03/04 04:44:07 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -95,11 +95,7 @@ extern void seq_desc(char *buf, uint8 xl_info, char *rec);
9595

9696
/* Set the upper and lower bounds of a sequence */
9797
#ifndefINT64_IS_BUSTED
98-
#ifdefHAVE_LL_CONSTANTS
99-
#defineSEQ_MAXVALUE((int64) 0x7FFFFFFFFFFFFFFFLL)
100-
#else
101-
#defineSEQ_MAXVALUE((int64) 0x7FFFFFFFFFFFFFFF)
102-
#endif
98+
#defineSEQ_MAXVALUEINT64CONST(0x7FFFFFFFFFFFFFFF)
10399
#else/* INT64_IS_BUSTED */
104100
#defineSEQ_MAXVALUE((int64) 0x7FFFFFFF)
105101
#endif/* INT64_IS_BUSTED */

‎src/port/gettimeofday.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* gettimeofday.c
33
* Win32 gettimeofday() replacement
44
*
5-
* $PostgreSQL: pgsql/src/port/gettimeofday.c,v 1.8 2006/03/03 23:59:14 momjian Exp $
5+
* $PostgreSQL: pgsql/src/port/gettimeofday.c,v 1.9 2006/03/04 04:44:07 momjian Exp $
66
*
77
* Copyright (c) 2003 SRA, Inc.
88
* Copyright (c) 2003 SKC, Inc.
@@ -32,7 +32,7 @@
3232

3333

3434
/* FILETIME of Jan 1 1970 00:00:00. */
35-
staticconstunsigned__int64epoch=116444736000000000LL;
35+
staticconstunsigned__int64epoch=UINT64CONST(116444736000000000);
3636

3737
/*
3838
* timezone information is stored outside the kernel so tzp isn't used anymore.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp