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 | 5e2529c79ea68492ea1d1791f6cd34ff61b8eb3f (patch) | |
tree | b8b3b92e8f49ba7d0b1a19195a5b919fdc19355d /cpp/src | |
parent | 731d6c4b13ed7ae5941a4b0f969be357f3d7e831 (diff) | |
download | qpid-python-5e2529c79ea68492ea1d1791f6cd34ff61b8eb3f.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); } |