diff options
| author | Nat Goodspeed <nat@lindenlab.com> | 2016-12-20 09:20:38 -0500 | 
|---|---|---|
| committer | Nat Goodspeed <nat@lindenlab.com> | 2016-12-20 09:20:38 -0500 | 
| commit | c992a6df9f5c8751c6f4811009e3b1ada09f208e (patch) | |
| tree | 6dc7e36fb5ad31991701d031c561ef5973887186 /indra | |
| parent | 553f9843b099ec2431d4348f3efc111b819b2a4b (diff) | |
DRTVWR-418: std::string::find() returns std::string::size_type.
Storing it in a U32 and then comparing it to std::string::npos isn't going to
work in 64 bit land.
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/llvfs/lldir_mac.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/lllogchat.cpp | 2 | 
2 files changed, 2 insertions, 2 deletions
| diff --git a/indra/llvfs/lldir_mac.cpp b/indra/llvfs/lldir_mac.cpp index 30a1ac975e..e776b84a12 100644 --- a/indra/llvfs/lldir_mac.cpp +++ b/indra/llvfs/lldir_mac.cpp @@ -94,7 +94,7 @@ LLDir_Mac::LLDir_Mac()  		// MBW -- This keeps the mac application from finding other things.  		// If this is really for skins, it should JUST apply to skins. -		std::size_t build_dir_pos = mExecutableDir.rfind("/build-darwin-"); +		std::string::size_type build_dir_pos = mExecutableDir.rfind("/build-darwin-");  		if (build_dir_pos != std::string::npos)  		{  			// ...we're in a dev checkout diff --git a/indra/newview/lllogchat.cpp b/indra/newview/lllogchat.cpp index 485d4677b1..0218a45b8e 100644 --- a/indra/newview/lllogchat.cpp +++ b/indra/newview/lllogchat.cpp @@ -927,7 +927,7 @@ bool LLChatLogParser::parse(std::string& raw, LLSD& im, const LLSD& parse_params  	//possibly a case of complex object names consisting of 3+ words  	if (!has_name)  	{ -		U32 divider_pos = stuff.find(NAME_TEXT_DIVIDER); +		std::string::size_type divider_pos = stuff.find(NAME_TEXT_DIVIDER);  		if (divider_pos != std::string::npos && divider_pos < (stuff.length() - NAME_TEXT_DIVIDER.length()))  		{  			im[LL_IM_FROM] = stuff.substr(0, divider_pos); | 
