mirror of
https://github.com/postgres/postgres.git
synced 2025-05-03 22:24:49 +03: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.
|
* by XLOG_SEG_SIZE.
|
||||||
*/
|
*/
|
||||||
#define XLogSegSize ((uint32) 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) \
|
#define XLogSegNoOffsetToRecPtr(segno, offset, dest) \
|
||||||
(dest) = (segno) * XLOG_SEG_SIZE + (offset)
|
(dest) = (segno) * XLOG_SEG_SIZE + (offset)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user