activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r730159 - /activemq/activemq-cpp/trunk/src/main/decaf/net/URI.cpp
Date Tue, 30 Dec 2008 15:55:34 GMT
Author: tabish
Date: Tue Dec 30 07:55:34 2008
New Revision: 730159

URL: http://svn.apache.org/viewvc?rev=730159&view=rev
Log:
Additional fixes to avoid issues on 64Bit platforms.

Modified:
    activemq/activemq-cpp/trunk/src/main/decaf/net/URI.cpp

Modified: activemq/activemq-cpp/trunk/src/main/decaf/net/URI.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/decaf/net/URI.cpp?rev=730159&r1=730158&r2=730159&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/decaf/net/URI.cpp (original)
+++ activemq/activemq-cpp/trunk/src/main/decaf/net/URI.cpp Tue Dec 30 07:55:34 2008
@@ -549,8 +549,8 @@
         return apr_strnatcmp( first.c_str(), second.c_str() ) == 0;
     }
 
-    unsigned int index = 0;
-    unsigned int previndex = 0;
+    std::size_t index = 0;
+    std::size_t previndex = 0;
 
     while( ( index = first.find( '%', previndex ) ) != string::npos &&
            second.find( '%', previndex ) == index ) {
@@ -585,8 +585,8 @@
         return s;
     }
 
-    unsigned int index = 0;
-    unsigned int previndex = 0;
+    std::size_t index = 0;
+    std::size_t previndex = 0;
 
     while( ( index = s.find( '%', previndex ) ) != string::npos ) {
         result.append( s.substr( previndex, ( index - previndex ) + 1 ) );



Mime
View raw message