]> granicus.if.org Git - postgresql/commitdiff
Use UINT64CONST for 64-bit integer constants.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sun, 24 Jun 2012 18:41:23 +0000 (21:41 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
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

index 22d2c644e7294e060a0e2ba4a5eb85bd8e1b6bb6..a74ff6526729894bfee42bebe81bfe9fa2bfec24 100644 (file)
@@ -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)