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

Unified Diff: mojo/edk/system/remote_producer_data_pipe_impl.cc

Issue 976013002: Miscellaneous fixes for MSVC. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: TODO Created 5 years, 10 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 | mojo/public/cpp/bindings/binding.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/remote_producer_data_pipe_impl.cc
diff --git a/mojo/edk/system/remote_producer_data_pipe_impl.cc b/mojo/edk/system/remote_producer_data_pipe_impl.cc
index 26ef410d7aad6a5f9c65e1fb736fade01d492c86..7cd2447fd0079a5dfbd42df39089ba66fe6b80f8 100644
--- a/mojo/edk/system/remote_producer_data_pipe_impl.cc
+++ b/mojo/edk/system/remote_producer_data_pipe_impl.cc
@@ -444,7 +444,7 @@ void RemoteProducerDataPipeImpl::MarkDataAsConsumed(size_t num_bytes) {
}
RemoteDataPipeAck ack_data = {};
- ack_data.num_bytes_consumed = num_bytes;
+ ack_data.num_bytes_consumed = static_cast<uint32_t>(num_bytes);
scoped_ptr<MessageInTransit> message(
new MessageInTransit(MessageInTransit::kTypeEndpoint,
MessageInTransit::kSubtypeEndpointDataPipeAck,
« no previous file with comments | « no previous file | mojo/public/cpp/bindings/binding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698