Author: tabish
Date: Fri Mar 20 13:33:16 2009
New Revision: 756453
URL: http://svn.apache.org/viewvc?rev=756453&view=rev
Log:
Fix a bug that manifests on 64bit platforms.
Modified:
activemq/activemq-cpp/trunk/src/main/activemq/util/URISupport.cpp
Modified: activemq/activemq-cpp/trunk/src/main/activemq/util/URISupport.cpp
URL:
http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/util/URISupport.cpp?rev=756453&r1=756452&r2=756453&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/util/URISupport.cpp (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/util/URISupport.cpp Fri Mar
20 13:33:16 2009
@@ -313,7 +313,7 @@
}
p = params.find( "?" );
- if( p >= 0 ) {
+ if( p != string::npos ) {
if( p > 0 ) {
rc.setPath( stripPrefix( params.substr( 0, p ), "/" ) );
}
@@ -331,7 +331,7 @@
StlList<std::string> components;
- std::size_t last = 0;
+ std::size_t last = 0;
int depth = 0;
std::string::const_iterator iter = str.begin();