You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2008/12/30 16:55:34 UTC
svn commit: r730159 - /activemq/activemq-cpp/trunk/src/main/decaf/net/URI.cpp
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 ) );