qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r1069349 - /qpid/trunk/qpid/cpp/src/qpid/broker/PriorityQueue.cpp
Date Thu, 10 Feb 2011 12:04:06 GMT
Author: gsim
Date: Thu Feb 10 12:04:05 2011
New Revision: 1069349

URL: http://svn.apache.org/viewvc?rev=1069349&view=rev
Log:
QPID-529: Fixed errors generated by different compiler versions

Modified:
    qpid/trunk/qpid/cpp/src/qpid/broker/PriorityQueue.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/broker/PriorityQueue.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/PriorityQueue.cpp?rev=1069349&r1=1069348&r2=1069349&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/broker/PriorityQueue.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/broker/PriorityQueue.cpp Thu Feb 10 12:04:05 2011
@@ -171,7 +171,7 @@ uint PriorityQueue::getPriorityLevel(con
     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);
 }



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message