| 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,
|
|
|