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

Unified Diff: net/spdy/fuzzing/hpack_fuzz_util.cc

Issue 786123002: Update from https://crrev.com/307330 (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/spdy/buffered_spdy_framer.cc ('k') | net/spdy/hpack_huffman_table.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/fuzzing/hpack_fuzz_util.cc
diff --git a/net/spdy/fuzzing/hpack_fuzz_util.cc b/net/spdy/fuzzing/hpack_fuzz_util.cc
index 58f2ec1430d06e2acc19477e5307abe94335093c..29604fe35fa60098efbcc4800d83be9ab6110c25 100644
--- a/net/spdy/fuzzing/hpack_fuzz_util.cc
+++ b/net/spdy/fuzzing/hpack_fuzz_util.cc
@@ -107,7 +107,8 @@ map<string, string> HpackFuzzUtil::NextGeneratedHeaderSet(
// static
size_t HpackFuzzUtil::SampleExponential(size_t mean, size_t sanity_bound) {
- return std::min<size_t>(-std::log(base::RandDouble()) * mean, sanity_bound);
+ return std::min(static_cast<size_t>(-std::log(base::RandDouble()) * mean),
+ sanity_bound);
}
// static
« no previous file with comments | « net/spdy/buffered_spdy_framer.cc ('k') | net/spdy/hpack_huffman_table.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698