diff options
Diffstat (limited to 'linden/indra/newview/llurlsimstring.cpp')
-rw-r--r-- | linden/indra/newview/llurlsimstring.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/newview/llurlsimstring.cpp b/linden/indra/newview/llurlsimstring.cpp index 8113326..5829e73 100644 --- a/linden/indra/newview/llurlsimstring.cpp +++ b/linden/indra/newview/llurlsimstring.cpp | |||
@@ -75,9 +75,9 @@ void LLURLSimString::setString(const LLString& sim_string) | |||
75 | // static | 75 | // static |
76 | S32 LLURLSimString::parseGridIdx(const LLString& in_string, S32 idx0, S32* res, S32 max) | 76 | S32 LLURLSimString::parseGridIdx(const LLString& in_string, S32 idx0, S32* res, S32 max) |
77 | { | 77 | { |
78 | if (idx0 == INT_MAX || in_string[idx0] != '/') | 78 | if (idx0 == LLString::npos || in_string[idx0] != '/') |
79 | { | 79 | { |
80 | return INT_MAX; // parse error | 80 | return LLString::npos; // parse error |
81 | } | 81 | } |
82 | idx0++; | 82 | idx0++; |
83 | LLString::size_type idx1 = in_string.find_first_of('/', idx0); | 83 | LLString::size_type idx1 = in_string.find_first_of('/', idx0); |