activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1027568 - /activemq/activemq-cpp/trunk/activemq-c/src/main/c/CMS_Connection.cpp
Date Tue, 26 Oct 2010 14:16:48 GMT
Author: tabish
Date: Tue Oct 26 14:16:48 2010
New Revision: 1027568

URL: http://svn.apache.org/viewvc?rev=1027568&view=rev
Log:
Fix a couple of warnings.

Modified:
    activemq/activemq-cpp/trunk/activemq-c/src/main/c/CMS_Connection.cpp

Modified: activemq/activemq-cpp/trunk/activemq-c/src/main/c/CMS_Connection.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-c/src/main/c/CMS_Connection.cpp?rev=1027568&r1=1027567&r2=1027568&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-c/src/main/c/CMS_Connection.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-c/src/main/c/CMS_Connection.cpp Tue Oct 26 14:16:48
2010
@@ -186,9 +186,9 @@ cms_status getConnectionClientId(CMS_Con
         try{
             std::string theClientId = connection->connection->getClientID();
 
-            if(theClientId.size() < size) {
+            if(theClientId.size() < (std::size_t)size) {
 
-                for(int i = 0; i < theClientId.size(); ++i) {
+                for(std::size_t i = 0; i < theClientId.size(); ++i) {
                     clientId[i] = theClientId.at(i);
                 }
 



Mime
View raw message