projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a218e23
)
Use UINT64CONST for 64-bit integer constants.
author
Heikki Linnakangas
Sun, 24 Jun 2012 18:41:23 +0000
(21:41 +0300)
committer
Heikki Linnakangas
Sun, 24 Jun 2012 18:56:45 +0000
(21:56 +0300)
Peter Eisentraut advised me that UINT64CONST is the proper way to do that,
not LL suffix.
src/include/access/xlog_internal.h
patch
|
blob
|
blame
|
history
diff --git
a/src/include/access/xlog_internal.h
b/src/include/access/xlog_internal.h
index 22d2c644e7294e060a0e2ba4a5eb85bd8e1b6bb6..a74ff6526729894bfee42bebe81bfe9fa2bfec24 100644
(file)
--- a/
src/include/access/xlog_internal.h
+++ b/
src/include/access/xlog_internal.h
@@
-110,7
+110,7
@@
typedef XLogLongPageHeaderData *XLogLongPageHeader;
* by XLOG_SEG_SIZE.
*/
#define XLogSegSize ((uint32) XLOG_SEG_SIZE)
-#define XLogSegmentsPerXLogId (
0x100000000LL
/ XLOG_SEG_SIZE)
+#define XLogSegmentsPerXLogId (
UINT64CONST(0x100000000)
/ XLOG_SEG_SIZE)
#define XLogSegNoOffsetToRecPtr(segno, offset, dest) \
(dest) = (segno) * XLOG_SEG_SIZE + (offset)