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

Unified Diff: tools/ipc_fuzzer/fuzzer/fuzzer_main.cc

Issue 1549203002: Switch to standard integer types in tools/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « tools/ipc_fuzzer/fuzzer/fuzzer.cc ('k') | tools/ipc_fuzzer/fuzzer/generator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/ipc_fuzzer/fuzzer/fuzzer_main.cc
diff --git a/tools/ipc_fuzzer/fuzzer/fuzzer_main.cc b/tools/ipc_fuzzer/fuzzer/fuzzer_main.cc
index 9072b18af20e20c58569b5ea2efdec1186cc02ac..04174af9a00c50b36f1a9e55a18867045f1afb06 100644
--- a/tools/ipc_fuzzer/fuzzer/fuzzer_main.cc
+++ b/tools/ipc_fuzzer/fuzzer/fuzzer_main.cc
@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <stddef.h>
+#include <stdint.h>
+
#include <iostream>
#include <set>
#include <vector>
@@ -161,7 +164,7 @@ int Mutate(base::CommandLine* cmd, Fuzzer* fuzzer) {
std::string type_string_list = cmd->GetSwitchValueASCII(kTypeListSwitch);
std::vector<std::string> type_string_vector = base::SplitString(
type_string_list, ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
- std::set<uint32> type_set;
+ std::set<uint32_t> type_set;
for (size_t i = 0; i < type_string_vector.size(); ++i) {
type_set.insert(atoi(type_string_vector[i].c_str()));
}
« no previous file with comments | « tools/ipc_fuzzer/fuzzer/fuzzer.cc ('k') | tools/ipc_fuzzer/fuzzer/generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698