8000 Fix warning for 64-bit literal on 32-bit build. · postgrespro/postgres_cluster@5c7f954 · GitHub
[go: up one dir, main page]

Skip to content
< 8000 header class="HeaderMktg header-logged-out js-details-container js-header Details f4 py-3" role="banner" data-is-top="true" data-color-mode=light data-light-theme=light data-dark-theme=dark>

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

8000
Appearance settings

Commit 5c7f954

Browse files
committed
Fix warning for 64-bit literal on 32-bit build.
1 parent b8b2e3b commit 5c7f954

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_resetxlog/pg_resetxlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ FindEndOfXLOG(void)
708708
* old pg_control. Note that for the moment we are working with segment
709709
* numbering according to the old xlog seg size.
710710
*/
711-
segs_per_xlogid = (0x100000000L / ControlFile.xlog_seg_size);
711+
segs_per_xlogid = (UINT64CONST(0x0000000100000000) / ControlFile.xlog_seg_size);
712712
newXlogSegNo = ControlFile.checkPointCopy.redo / ControlFile.xlog_seg_size;
713713

714714
/*

0 commit comments

Comments
 (0)
0