mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-30 19:00:29 +08:00
Use UINT64CONST for 64-bit integer constants.
Peter Eisentraut advised me that UINT64CONST is the proper way to do that, not LL suffix.
This commit is contained in:
parent
a218e23a08
commit
0687a26002
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user