From 6b7b4a24e283aa533e964cfa9db409e4bf18eb83 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 11 Jul 2012 16:33:57 +0000 Subject: NO-JIRA: Fixed compile error on RHEL5: double doesn't convert to int64_t git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1360282 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/ha/Primary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src') diff --git a/cpp/src/qpid/ha/Primary.cpp b/cpp/src/qpid/ha/Primary.cpp index feb18528ff..9f0fee84e9 100644 --- a/cpp/src/qpid/ha/Primary.cpp +++ b/cpp/src/qpid/ha/Primary.cpp @@ -99,7 +99,7 @@ Primary::Primary(HaBroker& hb, const BrokerInfo::Set& expect) : if (!backup->isReady()) expectedBackups.insert(backup); } // Set timeout for expected brokers to connect and become ready. - sys::Duration timeout(hb.getSettings().backupTimeout*sys::TIME_SEC); + sys::Duration timeout(int64_t(hb.getSettings().backupTimeout*sys::TIME_SEC)); sys::AbsTime deadline(sys::now(), timeout); timerTask = new ExpectedBackupTimerTask(*this, deadline); hb.getBroker().getTimer().add(timerTask); -- cgit v1.2.1