Windows: Fix type conversion warning with 64-bit MSVC.

request_handler_unittest.cc(448,55): warning C4267: 'argument':
conversion from 'size_t' to 'int', possible loss of data
This commit is contained in:
Marshall Greenblatt 2019-10-21 15:34:46 +02:00
parent aad4bf2464
commit 4f07cba011
1 changed files with 1 additions and 1 deletions

View File

@ -451,7 +451,7 @@ class NetNotifyRendererTest : public ClientAppRenderer::Delegate,
void RunNetNotifyTest(NetNotifyTestType test_type, void RunNetNotifyTest(NetNotifyTestType test_type,
bool same_origin, bool same_origin,
size_t count = 3U) { size_t count = 3U) {
TestHandler::CompletionState completion_state(count); TestHandler::CompletionState completion_state(static_cast<int>(count));
TestHandler::Collection collection(&completion_state); TestHandler::Collection collection(&completion_state);
std::vector<CefRefPtr<NetNotifyTestHandler>> handlers; std::vector<CefRefPtr<NetNotifyTestHandler>> handlers;