Commit 601faba1 authored by charliea's avatar charliea Committed by Commit bot

tools/battor_agent: Fixes a VS warning in battor_connection_impl.cc

This is one of a few of these types of warnings that I've found as I
continue my quest to get the battor_agent_unittests running on the
trybots.

TBR=zhenw@chromium.org,nednguyen@google.com
BUG=571458

Review URL: https://codereview.chromium.org/1642113002

Cr-Commit-Position: refs/heads/master@{#372089}
parent 08cd68e7
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment