Index: mojo/edk/system/data_pipe_consumer_dispatcher.cc |
diff --git a/mojo/edk/system/data_pipe_consumer_dispatcher.cc b/mojo/edk/system/data_pipe_consumer_dispatcher.cc |
index f2d4496f2934368aacdbd02e4499797ee44f5486..fa103c3afb6fc7aa9479f14b7d5ed11e969dc1cf 100644 |
--- a/mojo/edk/system/data_pipe_consumer_dispatcher.cc |
+++ b/mojo/edk/system/data_pipe_consumer_dispatcher.cc |
@@ -79,8 +79,8 @@ MojoResult DataPipeConsumerDispatcher::ReadDataImplNoLock( |
return data_pipe_->ConsumerReadData( |
elements, |
num_bytes, |
- (flags & MOJO_READ_DATA_FLAG_ALL_OR_NONE), |
- (flags & MOJO_READ_DATA_FLAG_PEEK)); |
+ !!(flags & MOJO_READ_DATA_FLAG_ALL_OR_NONE), |
+ !!(flags & MOJO_READ_DATA_FLAG_PEEK)); |
} |
MojoResult DataPipeConsumerDispatcher::BeginReadDataImplNoLock( |