Fix type conversion compile error (issue #1397).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1874 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2014-10-14 17:57:24 +00:00
parent aef4fafe56
commit 7ddcaaf14e
1 changed files with 2 additions and 2 deletions

View File

@ -1285,8 +1285,8 @@ int GetNavFromMultiNavURL(const std::string& url) {
// Extract the origin from the URL.
std::string GetOriginFromMultiNavURL(const std::string& url) {
const int pos = url.rfind("/");
EXPECT_TRUE(pos > 0);
const size_t pos = url.rfind("/");
EXPECT_TRUE(pos > 0U);
return url.substr(0, pos + 1);
}