aboutsummaryrefslogtreecommitdiff
path: root/src/include/commands/sequence.h
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2006-03-04 04:44:07 +0000
committerBruce Momjian <bruce@momjian.us>2006-03-04 04:44:07 +0000
commit3bce31f613d0b7e1f9542b19124335c6d3464121 (patch)
tree8736cfcd6cd24abcaddd55b48e8bc3a693e19e96 /src/include/commands/sequence.h
parentf1d7f80c1aae60ccfe0c3fbdc8ef74404da4d479 (diff)
downloadpostgresql-3bce31f613d0b7e1f9542b19124335c6d3464121.tar.gz
postgresql-3bce31f613d0b7e1f9542b19124335c6d3464121.zip
> 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
Diffstat (limited to 'src/include/commands/sequence.h')
-rw-r--r--src/include/commands/sequence.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/include/commands/sequence.h b/src/include/commands/sequence.h
index 13cbdc403ff..b7244baec19 100644
--- a/src/include/commands/sequence.h
+++ b/src/include/commands/sequence.h
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/commands/sequence.h,v 1.33 2005/10/02 23:50:12 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/commands/sequence.h,v 1.34 2006/03/04 04:44:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -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 */