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

Unified Diff: net/filter/gzip_header.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/dns/single_request_host_resolver.cc ('k') | net/http/disk_based_cert_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/filter/gzip_header.cc
diff --git a/net/filter/gzip_header.cc b/net/filter/gzip_header.cc
index 4d1cad91489e4639f4296345d71e16c2cf266b21..f4aca6b1518f3588ab2ff585c9a8ff8ac0d275cd 100644
--- a/net/filter/gzip_header.cc
+++ b/net/filter/gzip_header.cc
@@ -105,7 +105,7 @@ GZipHeader::Status GZipHeader::ReadMore(const char* inbuf, int inbuf_len,
case IN_FEXTRA: {
// Grab the rest of the bytes in the extra field, or as many
// of them as are actually present so far.
- const int num_extra_bytes = static_cast<const int>(std::min(
+ const uint16 num_extra_bytes = static_cast<uint16>(std::min(
static_cast<ptrdiff_t>(extra_length_),
(end - pos)));
pos += num_extra_bytes;
« no previous file with comments | « net/dns/single_request_host_resolver.cc ('k') | net/http/disk_based_cert_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698