Windows: Fix 64-bit compile errors (issue #1184).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1576 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
0df95ca529
commit
0c8b381a46
|
@ -222,9 +222,10 @@ class CefMessageRouterBrowserSideImpl : public CefMessageRouterBrowserSide {
|
|||
|
||||
return visitor.count();
|
||||
} else if (browser.get()) {
|
||||
return browser_query_info_map_.size(browser->GetIdentifier());
|
||||
return static_cast<int>(
|
||||
browser_query_info_map_.size(browser->GetIdentifier()));
|
||||
} else {
|
||||
return browser_query_info_map_.size();
|
||||
return static_cast<int>(browser_query_info_map_.size());
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
@ -776,9 +777,10 @@ class CefMessageRouterRendererSideImpl : public CefMessageRouterRendererSide {
|
|||
|
||||
return visitor.count();
|
||||
} else if (browser.get()) {
|
||||
return browser_request_info_map_.size(browser->GetIdentifier());
|
||||
return static_cast<int>(
|
||||
browser_request_info_map_.size(browser->GetIdentifier()));
|
||||
} else {
|
||||
return browser_request_info_map_.size();
|
||||
return static_cast<int>(browser_request_info_map_.size());
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -2238,7 +2238,8 @@ class MultiQueryManagerMap :
|
|||
EXPECT_EQ(it, manager_map_.end());
|
||||
|
||||
MultiQueryManager* manager =
|
||||
new MultiQueryManager(url, synchronous, manager_map_.size() * 1000);
|
||||
new MultiQueryManager(url, synchronous,
|
||||
static_cast<int>(manager_map_.size()) * 1000);
|
||||
manager->AddObserver(this);
|
||||
manager_map_.insert(std::make_pair(url, manager));
|
||||
|
||||
|
@ -2408,8 +2409,8 @@ class MultiQueryManagerMap :
|
|||
|
||||
static std::string GetNameForURL(const std::string& url) {
|
||||
// Extract the file name without extension.
|
||||
int pos1 = url.rfind("/");
|
||||
int pos2 = url.rfind(".");
|
||||
int pos1 = static_cast<int>(url.rfind("/"));
|
||||
int pos2 = static_cast<int>(url.rfind("."));
|
||||
EXPECT_TRUE(pos1 >= 0 && pos2 >= 0 && pos1 < pos2);
|
||||
return url.substr(pos1 + 1, pos2 - pos1 - 1);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue