diff options
author | lliabraa@chromium.org <lliabraa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-07 16:59:19 +0000 |
---|---|---|
committer | lliabraa@chromium.org <lliabraa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-07 16:59:19 +0000 |
commit | cbf03ba141434e753c517370696d93b43d8582d5 (patch) | |
tree | e356b6d644e5dd47146a56b0cae95b53a6f8c1fa /testing | |
parent | 8023becaac66d34b5ff05a2feca0efa5554d7804 (diff) | |
download | chromium_src-cbf03ba141434e753c517370696d93b43d8582d5.zip chromium_src-cbf03ba141434e753c517370696d93b43d8582d5.tar.gz chromium_src-cbf03ba141434e753c517370696d93b43d8582d5.tar.bz2 |
Fix bug in iossim's CaseInsensitivePrefixSearch.
BUG=None
Review URL: https://chromiumcodereview.appspot.com/11471030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171788 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'testing')
-rw-r--r-- | testing/iossim/iossim.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/iossim/iossim.mm b/testing/iossim/iossim.mm index 3ccec23..770ca41 100644 --- a/testing/iossim/iossim.mm +++ b/testing/iossim/iossim.mm @@ -506,7 +506,7 @@ BOOL CaseInsensitivePrefixSearch(NSString* stringToSearch, NSStringCompareOptions options = (NSAnchoredSearch | NSCaseInsensitiveSearch); NSRange range = [stringToSearch rangeOfString:prefixToFind options:options]; - return range.location != 0; + return range.location != NSNotFound; } // Prints the usage information to stderr. |