Skip to content

Commit 3bce31f

Browse files
committed
> gettimeofday.c:35: warning: integer constant is too large for "long"
> type Wouldn't it be better to use the UINT64CONST macro? I realize this file is Windows-only, but we do worry about more than one compiler on that platform. Kris Jurka
1 parent f1d7f80 commit 3bce31f

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
#ifndef INT64_IS_BUSTED
98-
#ifdef HAVE_LL_CONSTANTS
99-
#define SEQ_MAXVALUE ((int64) 0x7FFFFFFFFFFFFFFFLL)
100-
#else
101-
#define SEQ_MAXVALUE ((int64) 0x7FFFFFFFFFFFFFFF)
102-
#endif
98+
#define SEQ_MAXVALUE INT64CONST(0x7FFFFFFFFFFFFFFF)
10399
#else /* INT64_IS_BUSTED */
104100
#define SEQ_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-
static const unsigned __int64 epoch = 116444736000000000LL;
35+
static const unsigned __int64 epoch = UINT64CONST(116444736000000000);
3636

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

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