Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1575)

Unified Diff: tools/battor_agent/battor_connection_impl.cc

Issue 1642113002: tools/battor_agent: Fixes a VS warning in battor_connection_impl.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/battor_agent/battor_connection_impl.cc
diff --git a/tools/battor_agent/battor_connection_impl.cc b/tools/battor_agent/battor_connection_impl.cc
index 37accf8085a0cf819ad417de2dba222d37c3ab05..406eab7cdb8472bd573138913d36f1004e1d851a 100644
--- a/tools/battor_agent/battor_connection_impl.cc
+++ b/tools/battor_agent/battor_connection_impl.cc
@@ -156,7 +156,8 @@ void BattOrConnectionImpl::BeginReadBytes(size_t max_bytes_to_read) {
base::Bind(&BattOrConnectionImpl::OnBytesRead, AsWeakPtr());
io_handler_->Read(make_scoped_ptr(new device::ReceiveBuffer(
- pending_read_buffer_, max_bytes_to_read, on_receive_buffer_filled)));
+ pending_read_buffer_, static_cast<uint32_t>(max_bytes_to_read),
+ on_receive_buffer_filled)));
}
void BattOrConnectionImpl::OnBytesRead(int bytes_read,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698