summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian2006-03-04 04:44:07 +0000
committerBruce Momjian2006-03-04 04:44:07 +0000
commit0f4fb41774478751eb3ede28721c4781ca1f8002 (patch)
treeba524a8bbfe784756ad0e6e046b291bfe284e19f
parent931bb06c3ad40caf01679829bbb9657816a012a5 (diff)
> 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
-rw-r--r--src/include/commands/sequence.h6
-rw-r--r--src/port/gettimeofday.c2
2 files changed, 2 insertions, 6 deletions
diff --git a/src/include/commands/sequence.h b/src/include/commands/sequence.h
index 91ba0d86c0..b6720a46c6 100644
--- a/src/include/commands/sequence.h
+++ b/src/include/commands/sequence.h
@@ -95,11 +95,7 @@ extern void seq_desc(char *buf, uint8 xl_info, char *rec);
/* Set the upper and lower bounds of a sequence */
#ifndef INT64_IS_BUSTED
-#ifdef HAVE_LL_CONSTANTS
-#define SEQ_MAXVALUE ((int64) 0x7FFFFFFFFFFFFFFFLL)
-#else
-#define SEQ_MAXVALUE ((int64) 0x7FFFFFFFFFFFFFFF)
-#endif
+#define SEQ_MAXVALUE INT64CONST(0x7FFFFFFFFFFFFFFF)
#else /* INT64_IS_BUSTED */
#define SEQ_MAXVALUE ((int64) 0x7FFFFFFF)
#endif /* INT64_IS_BUSTED */
diff --git a/src/port/gettimeofday.c b/src/port/gettimeofday.c
index 3073b061cd..dda69ad2fd 100644
--- a/src/port/gettimeofday.c
+++ b/src/port/gettimeofday.c
@@ -32,7 +32,7 @@
/* FILETIME of Jan 1 1970 00:00:00. */
-static const unsigned __int64 epoch = 116444736000000000LL;
+static const unsigned __int64 epoch = UINT64CONST(116444736000000000);
/*
* timezone information is stored outside the kernel so tzp isn't used anymore.