aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKevin Grittner <kgrittn@postgresql.org>2012-06-25 07:25:00 -0500
committerKevin Grittner <kgrittn@postgresql.org>2012-06-25 07:25:00 -0500
commit5c7f954d310783d49724367c9fa6514bc62b7cce (patch)
treeda7870c0493dd789aa27cbb2ed3f72cbaecd2add /src
parentb8b2e3b2deeaab19715af063fc009b7c230b2336 (diff)
downloadpostgresql-5c7f954d310783d49724367c9fa6514bc62b7cce.tar.gz
postgresql-5c7f954d310783d49724367c9fa6514bc62b7cce.zip
Fix warning for 64-bit literal on 32-bit build.
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_resetxlog/pg_resetxlog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_resetxlog/pg_resetxlog.c b/src/bin/pg_resetxlog/pg_resetxlog.c
index 3500c4cf1d4..7e9864dd4d3 100644
--- 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;
/*