diff options
| author | Gordon Sim <gsim@apache.org> | 2011-02-10 12:04:05 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2011-02-10 12:04:05 +0000 |
| commit | a2d302b76c466bad34e7a47ec8f2d466074dafbf (patch) | |
| tree | b8b3b92e8f49ba7d0b1a19195a5b919fdc19355d /cpp/src | |
| parent | 888190b30248dcc77b6258514f5efe7450721d61 (diff) | |
| download | qpid-python-a2d302b76c466bad34e7a47ec8f2d466074dafbf.tar.gz | |
QPID-529: Fixed errors generated by different compiler versions
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1069349 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
| -rw-r--r-- | cpp/src/qpid/broker/PriorityQueue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/PriorityQueue.cpp b/cpp/src/qpid/broker/PriorityQueue.cpp index 0272e968ec..4c23b8feed 100644 --- a/cpp/src/qpid/broker/PriorityQueue.cpp +++ b/cpp/src/qpid/broker/PriorityQueue.cpp @@ -171,7 +171,7 @@ uint PriorityQueue::getPriorityLevel(const QueuedMessage& m) const uint priority = m.payload->getPriority(); //Use AMQP 0-10 approach to mapping priorities to a fixed level //(see rule priority-level-implementation) - const uint firstLevel = 5 - std::min(5.0, ceil((double) levels/2.0)); + const uint firstLevel = 5 - uint(std::min(5.0, std::ceil((double) levels/2.0))); if (priority <= firstLevel) return 0; return std::min(priority - firstLevel, (uint)levels-1); } |
