projects
/
postgresql
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8b2e3b
)
Fix warning for 64-bit literal on 32-bit build.
author
Kevin Grittner
<kgrittn@postgresql.org>
Mon, 25 Jun 2012 12:25:00 +0000
(07:25 -0500)
committer
Kevin Grittner
<kgrittn@postgresql.org>
Mon, 25 Jun 2012 12:25:00 +0000
(07:25 -0500)
src/bin/pg_resetxlog/pg_resetxlog.c
patch
|
blob
|
history
diff --git
a/src/bin/pg_resetxlog/pg_resetxlog.c
b/src/bin/pg_resetxlog/pg_resetxlog.c
index 3500c4cf1d49a627a3585b193a872c3f16effcec..7e9864dd4d3cdd551c9860eee03feaf6d8072c49 100644
(file)
--- a/
src/bin/pg_resetxlog/pg_resetxlog.c
+++ b/
src/bin/pg_resetxlog/pg_resetxlog.c
@@
-708,7
+708,7
@@
FindEndOfXLOG(void)
* old pg_control. Note that for the moment we are working with segment
* numbering according to the old xlog seg size.
*/
- segs_per_xlogid = (
0x100000000L
/ ControlFile.xlog_seg_size);
+ segs_per_xlogid = (
UINT64CONST(0x0000000100000000)
/ ControlFile.xlog_seg_size);
newXlogSegNo = ControlFile.checkPointCopy.redo / ControlFile.xlog_seg_size;
/*