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

Unified Diff: net/base/upload_bytes_element_reader.cc

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « net/base/network_change_notifier.cc ('k') | net/base/upload_file_element_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/upload_bytes_element_reader.cc
diff --git a/net/base/upload_bytes_element_reader.cc b/net/base/upload_bytes_element_reader.cc
index 6927d8ea7c27b5c3ccc1109d7e6525cd1041d10a..44f61f4f8490b9738133812d388a2d2a69abcd38 100644
--- a/net/base/upload_bytes_element_reader.cc
+++ b/net/base/upload_bytes_element_reader.cc
@@ -48,8 +48,8 @@ int UploadBytesElementReader::Read(IOBuffer* buf,
const CompletionCallback& callback) {
DCHECK_LT(0, buf_length);
- const size_t num_bytes_to_read =
- std::min(BytesRemaining(), static_cast<uint64>(buf_length));
+ const int num_bytes_to_read = static_cast<int>(
+ std::min(BytesRemaining(), static_cast<uint64>(buf_length)));
// Check if we have anything to copy first, because we are getting
// the address of an element in |bytes_| and that will throw an
« no previous file with comments | « net/base/network_change_notifier.cc ('k') | net/base/upload_file_element_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698